feat: fix organizationChangeTrigger() and userChangeTrigger() bugs

This commit is contained in:
Yang Luo
2024-02-21 01:14:32 +08:00
parent 69a8346d05
commit 03f005389f
2 changed files with 7 additions and 1 deletions

View File

@ -1021,6 +1021,10 @@ func userChangeTrigger(oldName string, newName string) error {
}
for _, permission := range permissions {
for j, u := range permission.Users {
if u == "*" {
continue
}
// u = organization/username
owner, name := util.GetOwnerAndNameFromId(u)
if name == oldName {