mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
Refactoring user permissions
This commit is contained in:
@@ -11,9 +11,9 @@ class Setting extends NexusModel
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
public static array $permissionDegeneration = [
|
||||
'torrent-approval' => 'torrentmanage',
|
||||
];
|
||||
const PERMISSION_NO_CLASS = 100;
|
||||
|
||||
public static array $permissionMustHaveClass = ['defaultclass', 'staffmem'];
|
||||
|
||||
/**
|
||||
* get setting autoload = yes with cache
|
||||
|
||||
Reference in New Issue
Block a user