ACL issue fixed

This commit is contained in:
jitendra 2019-03-01 11:00:15 +05:30
parent 876041aee4
commit e099492fd9
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ class Admin extends Authenticatable implements AdminContract
*/
public function hasPermission($permission)
{
if ($this->role->permission_type == 'custom' && ! $this->role->permissions)
return false;
return in_array($permission, $this->role->permissions);
}
}