1
This commit is contained in:
parent
030c41ceff
commit
3a78cfe230
@ -15,13 +15,10 @@ type Permission struct {
|
||||
}
|
||||
|
||||
type PermissionTable struct {
|
||||
f5.CustomMetaTable
|
||||
accountPermission *q5.ConcurrentMap[string, *Permission]
|
||||
}
|
||||
|
||||
func (this *PermissionTable) IsNoLoad() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (this *PermissionTable) Load() {
|
||||
this.accountPermission = new(q5.ConcurrentMap[string, *Permission])
|
||||
{
|
||||
@ -88,18 +85,6 @@ func (this *PermissionTable) Load() {
|
||||
}
|
||||
}
|
||||
|
||||
func (this *PermissionTable) PreInit1() {
|
||||
|
||||
}
|
||||
|
||||
func (this *PermissionTable) ElementsInit(int) {
|
||||
|
||||
}
|
||||
|
||||
func (this *PermissionTable) PostInit1() {
|
||||
|
||||
}
|
||||
|
||||
func (this *PermissionTable) CheckAPIPermission(account string, cmd string) bool {
|
||||
if account == "" || cmd == "" {
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user