FIX: fix permissions for publishing content pages
This commit is contained in:
@@ -29,7 +29,7 @@ Route::group(['namespace' => 'Contents'], function () {
|
||||
// change status of page (protected, public or draft)
|
||||
Route::get('content/status/{page}/{status}', 'ContentActions@changeStatus')
|
||||
->name('content.changeStatus')
|
||||
->middleware('can:changeStatus,page');
|
||||
->middleware('can:changeStatus,page,status');
|
||||
|
||||
// set homepage
|
||||
Route::get('content/homepage/{page}', 'ContentActions@setHomepage')
|
||||
|
||||
Reference in New Issue
Block a user