♻️ Optimized the initial permission system
This commit is contained in:
@ -118,8 +118,8 @@ func ConfirmAccount(code string) error {
|
||||
for k, v := range viper.GetStringMap("permissions.verified") {
|
||||
if val, ok := user.PermNodes[k]; !ok {
|
||||
user.PermNodes[k] = v
|
||||
} else if !ComparePermNode(val, v) {
|
||||
user.PermNodes[k] = v
|
||||
} else {
|
||||
user.PermNodes[k] = val
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user