diff --git a/src/hmnurl/hmnurl_test.go b/src/hmnurl/hmnurl_test.go index ab3c890e..16d4aed1 100644 --- a/src/hmnurl/hmnurl_test.go +++ b/src/hmnurl/hmnurl_test.go @@ -112,7 +112,7 @@ func TestUserSettings(t *testing.T) { func TestAdmin(t *testing.T) { AssertRegexMatch(t, BuildAdminAtomFeed(), RegexAdminAtomFeed, nil) AssertRegexMatch(t, BuildAdminApprovalQueue(), RegexAdminApprovalQueue, nil) - AssertRegexMatch(t, BuildAdminSetUserStatus(), RegexAdminSetUserStatus, nil) + AssertRegexMatch(t, BuildAdminSetUserOptions(), RegexAdminSetUserOptions, nil) AssertRegexMatch(t, BuildAdminNukeUser(), RegexAdminNukeUser, nil) } diff --git a/src/hmnurl/urls.go b/src/hmnurl/urls.go index 8b6b537b..9f566723 100644 --- a/src/hmnurl/urls.go +++ b/src/hmnurl/urls.go @@ -245,11 +245,11 @@ func BuildAdminApprovalQueue() string { return Url("/admin/approvals", nil) } -var RegexAdminSetUserStatus = regexp.MustCompile(`^/admin/setuserstatus$`) +var RegexAdminSetUserOptions = regexp.MustCompile(`^/admin/setuseroptions$`) -func BuildAdminSetUserStatus() string { +func BuildAdminSetUserOptions() string { defer CatchPanic() - return Url("/admin/setuserstatus", nil) + return Url("/admin/setuseroptions", nil) } var RegexAdminNukeUser = regexp.MustCompile(`^/admin/nukeuser$`) diff --git a/src/templates/src/user_profile.html b/src/templates/src/user_profile.html index 961afbb8..39627f4d 100644 --- a/src/templates/src/user_profile.html +++ b/src/templates/src/user_profile.html @@ -73,22 +73,33 @@