AuthZ: Remove outdated comments (#113817)

This commit is contained in:
Gabriel MABILLE
2025-11-13 11:06:02 +01:00
committed by GitHub
parent 3bd49f6546
commit 97a6ab7b1c
+1 -12
View File
@@ -618,6 +618,7 @@ func (s *Service) checkPermission(ctx context.Context, scopeMap map[string]bool,
}
if t.SkipScope(req.Verb) {
// Resource doesn't require scope on this verb, so allow if the user has the action
return scopeMap[""], nil
}
@@ -627,18 +628,6 @@ func (s *Service) checkPermission(ctx context.Context, scopeMap map[string]bool,
req.ParentFolder = accesscontrol.GeneralFolderUID
}
//if req.Verb == utils.VerbCreate {
// // Resource doesn't require scope on create, so allow if the user has the action
// if t.SkipScopeOnCreate() {
// return scopeMap[""], nil
// }
// // If creating a resource that goes in a folder, but no folder is specified,
// // assume parent folder is the general folder
// if t.HasFolderSupport() && req.ParentFolder == "" {
// req.ParentFolder = accesscontrol.GeneralFolderUID
// }
//}
// Wildcard grant, no further checks needed
if scopeMap["*"] {
return true, nil