Skip to content

Commit

Permalink
admin still must set deprecated group, as it will be overwritten by a…
Browse files Browse the repository at this point in the history
… following migration
  • Loading branch information
cj123 committed Feb 18, 2020
1 parent 9ef82f8 commit a2cfb0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
v1.7.3-1
--------

Fixes:

* Fixes an issue where new multiserver setups of Server Manager would go into a redirect loop when creating new servers.
If you experienced this issue, please try setting the multiserver up from scratch (i.e. delete the shared_store.json and servers folders).

---

v1.7.3
------

Expand Down
2 changes: 2 additions & 0 deletions migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ func addAdminAccount(rs Store) error {
account := NewAccount()
account.Name = adminUserName
account.DefaultPassword = "servermanager"
// DeprecatedGroup must be assigned to here, since a following migration will just re-set-up Groups.
account.DeprecatedGroup = GroupAdmin
account.Groups[serverID] = GroupAdmin

return rs.UpsertAccount(account)
Expand Down

0 comments on commit a2cfb0f

Please sign in to comment.