summaryrefslogtreecommitdiffstats
path: root/cmd/platform/roles.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/roles.go')
-rw-r--r--cmd/platform/roles.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/roles.go b/cmd/platform/roles.go
index 7939dc5c7..e7a1c1a0e 100644
--- a/cmd/platform/roles.go
+++ b/cmd/platform/roles.go
@@ -52,7 +52,7 @@ func makeSystemAdminCmdF(cmd *cobra.Command, args []string) error {
return errors.New("Unable to find user '" + args[i] + "'")
}
- if _, err := a.UpdateUserRoles(user.Id, "system_admin system_user"); err != nil {
+ if _, err := a.UpdateUserRoles(user.Id, "system_admin system_user", true); err != nil {
return err
}
}
@@ -76,7 +76,7 @@ func makeMemberCmdF(cmd *cobra.Command, args []string) error {
return errors.New("Unable to find user '" + args[i] + "'")
}
- if _, err := a.UpdateUserRoles(user.Id, "system_user"); err != nil {
+ if _, err := a.UpdateUserRoles(user.Id, "system_user", true); err != nil {
return err
}
}