mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 05:12:09 +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) {
|
public override void Adjust(CheckAccessContext context) {
|
||||||
if (context.Granted == false &&
|
if (context.Granted == false &&
|
||||||
context.Content.Is<Page>() &&
|
context.Content.Is<Page>() &&
|
||||||
HasOwnerVariation(context.Permission) &&
|
OwnerVariationExists(context.Permission) &&
|
||||||
HasOwnership(context.User, context.Content)) {
|
HasOwnership(context.User, context.Content)) {
|
||||||
|
|
||||||
context.Adjusted = true;
|
context.Adjusted = true;
|
||||||
@@ -30,7 +30,7 @@ namespace Orchard.Pages.Security {
|
|||||||
return user.Id == common.Owner.Id;
|
return user.Id == common.Owner.Id;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool HasOwnerVariation(Permission permission) {
|
private static bool OwnerVariationExists(Permission permission) {
|
||||||
return GetOwnerVariation(permission) != null;
|
return GetOwnerVariation(permission) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user