feat: more role backend and admin/writer roles additions and adjustments
This commit is contained in:
1 parent
8c6c6456da
commit
de142f6c5f
131 files changed
+2663
-435
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user