You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Cpp/odin-views/permission.md
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,10 +38,36 @@ This view is used when different HTTP verbs require different permissions.
38
38
"allowed": "example-view",
39
39
"forbidden": "read-only-view"
40
40
},
41
+
"otherwise": {
42
+
"view": "fost.response.403"
43
+
}
44
+
}
45
+
}
46
+
```
47
+
48
+
`HEAD` is supported automatically if `GET` is configured and will use `GET` permission configuration.
49
+
50
+
The default view configuration for forbidden is `fost.response.403`.
51
+
52
+
`otherwise` configuration needs to be a proper view configuration. The default configuration for `otherwise` is shown below where `allow` is taken from all the verbs configured.
0 commit comments