Commit abac7927 authored by Nicolas Widart's avatar Nicolas Widart

Squashed 'Modules/Dashboard/' changes from 464aa5e..4ff3fb2

4ff3fb2 Adding permission key

git-subtree-dir: Modules/Dashboard
git-subtree-split: 4ff3fb20f6fca907aec21ba8a6f344237590a040
parent 8f1eb55f
<?php namespace Modules\Dashboard\Composers;
use Illuminate\View\View;
use Illuminate\Contracts\View\View;
use Modules\Core\Composers\BaseSidebarViewComposer;
class SidebarViewComposer
class SidebarViewComposer extends BaseSidebarViewComposer
{
public function compose(View $view)
{
......@@ -12,6 +13,7 @@ class SidebarViewComposer
'route' => 'dashboard.index',
'icon-class' => 'fa fa-dashboard',
'title' => 'Dashboard',
'permission' => $this->auth->hasAccess('dashboard.index')
]);
}
}
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