mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
feat: implement organization role sync (#14649)
* chore: implement organization and site wide role sync in idpsync * chore: remove old role sync, insert new idpsync package
This commit is contained in:
@ -8730,7 +8730,7 @@ func (q *FakeQuerier) UpdateUserRoles(_ context.Context, arg database.UpdateUser
|
||||
}
|
||||
|
||||
// Set new roles
|
||||
user.RBACRoles = arg.GrantedRoles
|
||||
user.RBACRoles = slice.Unique(arg.GrantedRoles)
|
||||
// Remove duplicates and sort
|
||||
uniqueRoles := make([]string, 0, len(user.RBACRoles))
|
||||
exist := make(map[string]struct{})
|
||||
|
Reference in New Issue
Block a user