diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/platform/roles.go | 4 | ||||
-rw-r--r-- | cmd/platform/user.go | 2 |
2 files changed, 3 insertions, 3 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 } } diff --git a/cmd/platform/user.go b/cmd/platform/user.go index 66b0f2223..ea654f89f 100644 --- a/cmd/platform/user.go +++ b/cmd/platform/user.go @@ -246,7 +246,7 @@ func userCreateCmdF(cmd *cobra.Command, args []string) error { if ruser, err := a.CreateUser(user); err != nil { return errors.New("Unable to create user. Error: " + err.Error()) } else if systemAdmin { - a.UpdateUserRoles(ruser.Id, "system_user system_admin") + a.UpdateUserRoles(ruser.Id, "system_user system_admin", false) } CommandPrettyPrintln("Created User") |