Commit 743dcb2c authored by Nicolas Widart's avatar Nicolas Widart

Squashed 'Modules/Setting/' changes from a5c8be9..6946310

6946310 Using the view contract
9a1b4d4 Changing namespace
ca42319 Adding permission key

git-subtree-dir: Modules/Setting
git-subtree-split: 694631091f6ff524da58813835de0ef88a9c61b2
parent 6a966cc8
<?php namespace Modules\Setting\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.setting.index',
'icon-class' => 'fa fa-cog',
'title' => 'Settings',
'permission' => $this->auth->hasAccess('settings.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