Permission fixes
This commit is contained in:
@@ -13,6 +13,9 @@ class RootController extends Controller
|
||||
}
|
||||
|
||||
public function index() {
|
||||
return Response::detect("root.index");
|
||||
if(auth()->user()->can('admin.panel.show'))
|
||||
return Response::detect("root.index");
|
||||
else
|
||||
return view('app.root.index');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user