mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-06 16:36:54 +08:00
Implemented ACL tests using test suites and server cleanup functions.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -241,8 +241,8 @@ func (user *User) UpdateUser(cmd []string) error {
|
||||
user.IncludedCategories = []string{}
|
||||
user.ExcludedCategories = []string{"*"}
|
||||
}
|
||||
// If resetkeys is provided, reset all keys that the user can access
|
||||
if strings.EqualFold(str, "resetkeys") {
|
||||
// If resetkeys or nokeys is provided, reset all keys that the user can access.
|
||||
if slices.Contains([]string{"resetkeys", "nokeys"}, str) {
|
||||
user.IncludedReadKeys = []string{}
|
||||
user.IncludedWriteKeys = []string{}
|
||||
user.NoKeys = true
|
||||
|
Reference in New Issue
Block a user