nixos-modules/modules/portunus-remove-add-group.diff

26 lines
1.2 KiB
Diff

diff --git a/internal/frontend/core.go b/internal/frontend/core.go
index 5976377..7c67991 100644
--- a/internal/frontend/core.go
+++ b/internal/frontend/core.go
@@ -43,8 +43,6 @@ func HTTPHandler(nexus core.Nexus, isBehindTLSProxy bool) http.Handler {
r.Methods("POST").Path(`/users/{uid}/delete`).Handler(postUserDeleteHandler(nexus))
r.Methods("GET").Path(`/groups`).Handler(getGroupsHandler(nexus))
- r.Methods("GET").Path(`/groups/new`).Handler(getGroupsNewHandler(nexus))
- r.Methods("POST").Path(`/groups/new`).Handler(postGroupsNewHandler(nexus))
r.Methods("GET").Path(`/groups/{name}/edit`).Handler(getGroupEditHandler(nexus))
r.Methods("POST").Path(`/groups/{name}/edit`).Handler(postGroupEditHandler(nexus))
r.Methods("GET").Path(`/groups/{name}/delete`).Handler(getGroupDeleteHandler(nexus))
diff --git a/internal/frontend/groups.go b/internal/frontend/groups.go
index 5ac6a75..ac59f4f 100644
--- a/internal/frontend/groups.go
+++ b/internal/frontend/groups.go
@@ -38,7 +38,6 @@ func getGroupsHandler(n core.Nexus) http.Handler {
<th>Members</th>
<th>Permissions granted</th>
<th class="actions">
- <a href="/groups/new" class="button button-primary">New group</a>
</th>
</tr>
</thead>