Restrict anonymous user capabilities (#2156)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2022-06-09 11:30:01 -04:00
1 parent 3521c21cd5
commit d6362f9e5e
11 files changed
+266 -63

No files matched your search

+4
View File
@@ -53,6 +53,10 @@ const (
AddHostSources Type = 42
SetHostSources Type = 43
RemoveHostSources Type = 44
// When adding new actions, be sure to update:
//
// * The Test_AnonRestrictions test
)
var Map = map[string]Type{
+1
View File
@@ -30,6 +30,7 @@ const (
// * The Grant.validateType function and test
// * The perms.topLevelTypes function
// * The scopes service collection actions for appropriate scopes
// * The Test_AnonRestrictions test
)
func (r Type) MarshalJSON() ([]byte, error) {