diff options
Diffstat (limited to 'cmd/platform/roles.go')
-rw-r--r-- | cmd/platform/roles.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/roles.go b/cmd/platform/roles.go index 97d6edf17..f41c0c206 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 := app.UpdateUserRoles(user.Id, "system_admin system_user"); err != nil { + if _, err := app.Global().UpdateUserRoles(user.Id, "system_admin system_user"); err != nil { return err } } @@ -75,7 +75,7 @@ func makeMemberCmdF(cmd *cobra.Command, args []string) error { return errors.New("Unable to find user '" + args[i] + "'") } - if _, err := app.UpdateUserRoles(user.Id, "system_user"); err != nil { + if _, err := app.Global().UpdateUserRoles(user.Id, "system_user"); err != nil { return err } } |