Added tests for ContentPermissionsResourceHandler and MediaPermissionsResourceHandler.

This commit is contained in:
Andy Butland
2020-12-02 22:30:44 +01:00
parent 009ba1b81b
commit 45b9f31e44
8 changed files with 262 additions and 14 deletions

View File

@@ -59,7 +59,7 @@ namespace Umbraco.Core.Security
return ContentAccess.Granted;
//get the implicit/inherited permissions for the user for this path
return CheckPermissionsPath(content.Path, user)
return CheckPermissionsPath(content.Path, user, permissionsToCheck)
? ContentAccess.Granted
: ContentAccess.Denied;
}
@@ -87,7 +87,7 @@ namespace Umbraco.Core.Security
return ContentAccess.Granted;
//get the implicit/inherited permissions for the user for this path
return CheckPermissionsPath(entity.Path, user)
return CheckPermissionsPath(entity.Path, user, permissionsToCheck)
? ContentAccess.Granted
: ContentAccess.Denied;
}