DIRAC FileCatalog Security Manager mix-in class for access check only on the directory level with a special treatment of the Delete operation

class DIRAC.DataManagementSystem.DB.FileCatalogComponents.SecurityManager.DirectorySecurityManagerWithDelete.DirectorySecurityManagerWithDelete(database=None)

Bases: DirectorySecurityManager

This security manager implements a Delete operation. For Read, Write, Execute, it’s behavior is the one of DirectorySecurityManager. For Delete, if the directory does not exist, we return True. If the directory exists, then we test the Write permission

getPathPermissions(paths, credDict)

Get path permissions according to the policy

hasAccess(opType, paths, credDict)