Returns a collection of permission objects for the resource.
public IList<IPermission> GetPermissionsForResource(string resourceName, string resourceID, bool allRolesIfNone);
A collection of permissions for the resource
The name of the resource (persisted only for readability).
The ID of the resource to check.
If true and there are no permissions defined for the resource, add all roles with full rights.