feat:动态权限
This commit is contained in:
@@ -55,4 +55,14 @@ class PermissionsModel extends Model
|
||||
{
|
||||
return self::query()->select($this->fieldsInList)->quickSearch()->get()->toTree();
|
||||
}
|
||||
|
||||
/**
|
||||
* is hidden
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isHidden(): bool
|
||||
{
|
||||
return $this->hidden === 2;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user