mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 03:00:18 +08:00
feat: fix organizationChangeTrigger() and userChangeTrigger() bugs
This commit is contained in:
@ -464,7 +464,9 @@ func organizationChangeTrigger(oldName string, newName string) error {
|
||||
record.Organization = newName
|
||||
_, err = session.Where("organization=?", oldName).Update(record)
|
||||
if err != nil {
|
||||
return err
|
||||
if err.Error() != "no columns found to be updated" {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
resource := new(Resource)
|
||||
|
Reference in New Issue
Block a user