feat: more role backend and admin/writer roles additions and adjustments

This commit is contained in:
Florian Sylvain committed 2026-10-26 18:15:26 +01:00
1 parent 8c6c6456da
commit de142f6c5f
131 files changed
+2663 -435

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ func TestSeoOutputSitemap(t *testing.T) {
t.Run("The route does not disturb the owner-only site routes", func(t *testing.T) {
e := newSeoOutEnv(t)
expectStatusAndText(t, e.call(t, "admin", http.MethodPatch, "/v1/site/2", `{"site_name": "x"}`), 403, apperr.OwnerRequiredErrorMessage)
expectStatusAndText(t, e.call(t, "editor", http.MethodPatch, "/v1/site/2", `{"site_name": "x"}`), 403, apperr.MissingPermissionErrorMessage)
})
t.Run("The browser can read the total header", func(t *testing.T) {