Permission fixes

This commit is contained in:
frederikpyt
2020-07-29 12:18:08 +02:00
parent faec1f66c5
commit a5cb2e2cde
3 changed files with 6 additions and 10 deletions
@@ -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');
}
}