Source: http://administrator.frozennode.com/docs/configuration#permission
'permission'=> function()
{
return Auth::check();
},
That is for default laravel auth, so you will need these for sentry:
'permission'=> function()
{
// Check if the user is logged in
if (Sentry::check())
{
// Check if the user has access to the admin page
if (Sentry::getUser()->hasAccess('admin'))
return true;
}
return false;
},
Just dont forget that hasAccess('admin') is a permission so change it the way you need it
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community