mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(notify): support modify rolescope when change subscriber
This commit is contained in:
@@ -284,6 +284,9 @@ func (s *SSubscriber) PerformChange(ctx context.Context, userCred mcclient.Token
|
||||
case api.SUBSCRIBER_TYPE_ROLE:
|
||||
_, err := db.Update(s, func() error {
|
||||
s.Identification = input.Role
|
||||
if input.RoleScope != "" {
|
||||
s.RoleScope = input.RoleScope
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user