mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-22 21:02:08 +08:00
Small rename in utility method
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045958
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Orchard.Pages.Security {
|
||||
public override void Adjust(CheckAccessContext context) {
|
||||
if (context.Granted == false &&
|
||||
context.Content.Is<Page>() &&
|
||||
HasOwnerVariation(context.Permission) &&
|
||||
OwnerVariationExists(context.Permission) &&
|
||||
HasOwnership(context.User, context.Content)) {
|
||||
|
||||
context.Adjusted = true;
|
||||
@@ -30,7 +30,7 @@ namespace Orchard.Pages.Security {
|
||||
return user.Id == common.Owner.Id;
|
||||
}
|
||||
|
||||
private static bool HasOwnerVariation(Permission permission) {
|
||||
private static bool OwnerVariationExists(Permission permission) {
|
||||
return GetOwnerVariation(permission) != null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user