FIX: fix permissions for publishing content pages

This commit is contained in:
Michal Kváček
2017-09-07 23:53:34 +02:00
parent 983efad9f0
commit e8cbc1b537
3 changed files with 71 additions and 4 deletions
+1 -1
View File
@@ -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')