mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge 1.x
--HG-- branch : autoroute
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Orchard.Specs.Bindings {
|
||||
webApp.Host.Execute(() => {
|
||||
using ( var environment = MvcApplication.CreateStandaloneEnvironment("Default") ) {
|
||||
var memberShipService = environment.Resolve<IMembershipService>();
|
||||
var athorizationService = environment.Resolve<IAuthorizationService>();
|
||||
var authorizationService = environment.Resolve<IAuthorizationService>();
|
||||
var contentManager = environment.Resolve<IContentManager>();
|
||||
|
||||
var contentItem = contentManager.Create(contentType);
|
||||
@@ -30,7 +30,7 @@ namespace Orchard.Specs.Bindings {
|
||||
var otherUser = memberShipService.GetUser(otherName);
|
||||
contentItem.As<ICommonPart>().Owner = otherUser;
|
||||
|
||||
Assert.That(athorizationService.TryCheckAccess(GetPermissionForAction(action), user, contentItem), Is.True);
|
||||
Assert.That(authorizationService.TryCheckAccess(GetPermissionForAction(action), user, contentItem), Is.True);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user