ACL issue fixed
This commit is contained in:
parent
876041aee4
commit
e099492fd9
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue