mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 21:13:35 +08:00
Moving xmlrpc method to upload files into media module. Updating some localized string tests.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4040921
This commit is contained in:
@@ -37,6 +37,7 @@ namespace Orchard.CmsPages.Controllers {
|
||||
_templateProvider = templateProvider;
|
||||
_notifier = notifier;
|
||||
Logger = NullLogger.Instance;
|
||||
T = NullLocalizer.Instance;
|
||||
}
|
||||
|
||||
// That's what it takes to get the CurrentUser for a module.
|
||||
@@ -290,7 +291,7 @@ namespace Orchard.CmsPages.Controllers {
|
||||
public ActionResult DeleteDraft(int id) {
|
||||
#warning UNIT TEST!!!!
|
||||
if (!_authorizer.Authorize(Permissions.DeleteDraftPages, T("Couldn't delete draft page")))
|
||||
return new HttpUnauthorizedResult();
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
var lastRevision = _pageManager.GetLastRevision(id);
|
||||
if (!lastRevision.IsPublished())
|
||||
|
Reference in New Issue
Block a user