Commit 8a234bda authored by Nicolas Widart's avatar Nicolas Widart

Adding permissions

parent 50f302e0
......@@ -13,7 +13,7 @@ class SidebarViewComposer extends BaseSidebarViewComposer
'route' => 'dashboard.media.index',
'icon-class' => 'fa fa-camera',
'title' => 'Medias',
'permission' => $this->auth->hasAccess('dashboard.index')
'permission' => $this->auth->hasAccess('media.index')
]);
}
}
<?php
return [
'media' => [
'index',
'create',
'store',
'edit',
'update',
'destroy',
]
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment