refactor
This commit is contained in:
parent
4f4194c7b6
commit
416780f9fd
@ -45,6 +45,8 @@ func (c *Controller) PublishPrivileges() error {
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Println("Old Privilege:", old)
|
||||
|
||||
if len(old) == 0 {
|
||||
return c.setupActualPrivileges()
|
||||
}
|
||||
@ -61,6 +63,7 @@ func (c *Controller) PublishPrivileges() error {
|
||||
if err := c.removePrivilege(oldPriv.PrivilegeID); err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println("Privilege is removed, PrivilegeID:", oldPriv.PrivilegeID)
|
||||
}
|
||||
found = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user