Skip to content

Commit

Permalink
Merge pull request #785 from JustaPenguin/admin-deprecated-group
Browse files Browse the repository at this point in the history
admin still must set deprecated group, as it will be overwritten by a following migration
  • Loading branch information
cj123 authored Feb 18, 2020
2 parents ca1e510 + d315f28 commit 445f780
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
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).
* Fixes an issue where a Scheduled Custom Race may revert to an older copy when being started.
* Fallback Results now takes account of results files where a driver has laps but is in neither the Cars nor Results lists.

---

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 445f780

Please sign in to comment.