This commit is contained in:
Prashant Singh 2019-04-05 19:38:44 +05:30
parent e88bf10c55
commit 1e6579bedf
3 changed files with 1 additions and 6 deletions

View File

@ -72,6 +72,7 @@ class AdminServiceProvider extends ServiceProvider
if (! bouncer()->hasPermission($item['key'])) {
continue;
}
if ($index + 1 < count(config('menu.admin')) && $permissionType != 'all') {
$permission = config('menu.admin')[$index + 1];

View File

@ -10,8 +10,4 @@
</li>
@endforeach
</ul>
{{-- <div class="open-nav-aside">
<i class="icon angle-right-icon open-icon"></i>
</div> --}}
</div>

View File

@ -29,8 +29,6 @@ class Bouncer
public function checkIfAuthorized($request)
{
// dd(auth()->guard('admin')->user()->role);
if (! $role = auth()->guard('admin')->user()->role)
abort(401, 'This action is unauthorized.');