♻️ Optimized the initial permission system

This commit is contained in:
2024-07-03 22:36:42 +08:00
parent a4ccf12b7a
commit 5200e00c9b
3 changed files with 36 additions and 36 deletions

View File

@ -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
}
}