Skip to content

Commit

Permalink
Demote demo user "moss" from admin to space-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
rhafer committed Jul 22, 2022
1 parent 5db4b3a commit 379f432
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/ocis/getting-started/demo-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Following users are available in the demo set:
| admin | admin or the one generated by `ocis init` | [email protected] | admin | users |
| einstein | relativity | [email protected] | user | users, philosophy-haters, physics-lovers, sailing-lovers, violin-haters |
| marie | radioactivity | [email protected] | user | users, physics-lovers, polonium-lovers, radium-lovers |
| moss | vista | [email protected] | admin | users |
| moss | vista | [email protected] | space admin | users |
| richard | superfluidity | [email protected] | user | users, philosophy-haters, physics-lovers, quantum-lovers |
| katherine | gemini | [email protected] | space admin | users, sailing-lovers, physics-lovers, quantum-lovers |

Expand Down
6 changes: 3 additions & 3 deletions services/settings/pkg/service/v0/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,6 @@ func (g Service) defaultRoleAssignments() []*settingsmsg.UserRoleAssignment {
return []*settingsmsg.UserRoleAssignment{
// default admin users
{
AccountUuid: "058bff95-6708-4fe5-91e4-9ea3d377588b", // demo user "moss"
RoleId: BundleUUIDRoleAdmin,
}, {
AccountUuid: g.config.AdminUserID,
RoleId: BundleUUIDRoleAdmin,
},
Expand All @@ -552,6 +549,9 @@ func (g Service) defaultRoleAssignments() []*settingsmsg.UserRoleAssignment {
},
// default users with role "spaceadmin"
{
AccountUuid: "058bff95-6708-4fe5-91e4-9ea3d377588b", // demo user "moss"
RoleId: BundleUUIDRoleSpaceAdmin,
}, {
AccountUuid: "534bb038-6f9d-4093-946f-133be61fa4e7", // demo user "katherine"
RoleId: BundleUUIDRoleSpaceAdmin,
},
Expand Down
6 changes: 3 additions & 3 deletions services/settings/pkg/store/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,6 @@ func DefaultRoleAssignments(cfg *config.Config) []*settingsmsg.UserRoleAssignmen
return []*settingsmsg.UserRoleAssignment{
// default admin users
{
AccountUuid: "058bff95-6708-4fe5-91e4-9ea3d377588b", // demo user "moss"
RoleId: BundleUUIDRoleAdmin,
}, {
AccountUuid: cfg.AdminUserID,
RoleId: BundleUUIDRoleAdmin,
},
Expand All @@ -520,6 +517,9 @@ func DefaultRoleAssignments(cfg *config.Config) []*settingsmsg.UserRoleAssignmen
},
// default users with role "spaceadmin"
{
AccountUuid: "058bff95-6708-4fe5-91e4-9ea3d377588b", // demo user "moss"
RoleId: BundleUUIDRoleAdmin,
}, {
AccountUuid: "534bb038-6f9d-4093-946f-133be61fa4e7",
RoleId: BundleUUIDRoleSpaceAdmin,
},
Expand Down

0 comments on commit 379f432

Please sign in to comment.