MSP-1756 add merge permissions, update permissions service
This commit is contained in:
1 parent
d3747e6ff3
commit
cccb1fc80b
4 files changed
+32
-24
No files matched your search
@@ -83,6 +83,10 @@ func (u UserRole) ForceUpsert(ctx context.Context, id int, roleIds []int) error
|
||||
return errors.WithMessage(err, "exec")
|
||||
}
|
||||
|
||||
if len(roleIds) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
rolesQ := query.New().
|
||||
Insert("user_roles").
|
||||
Columns("user_id", "role_id")
|
||||
|
||||
Reference in new issue
Block a user