mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-24 01:49:12 +08:00
Fixing auto-merge errors
This commit is contained in:
@@ -61,6 +61,7 @@ namespace Orchard.MediaLibrary.Services {
|
||||
UrlHelper url) {
|
||||
|
||||
List<LocalizedString> validationErrors;
|
||||
var user = _membershipService.ValidateUser(userName, password, out validationErrors);
|
||||
if (!_authorizationService.TryCheckAccess(Permissions.ManageOwnMedia, user, null)
|
||||
&& !_authorizationService.TryCheckAccess(Permissions.EditMediaContent, user, null)) {
|
||||
throw new OrchardCoreException(T("Access denied"));
|
||||
|
@@ -25,7 +25,7 @@ namespace Orchard.Taxonomies.Handlers {
|
||||
Filters.Add(StorageFilter.For(repository));
|
||||
OnPublished<TaxonomyPart>((context, part) => {
|
||||
|
||||
if (String.IsNullOrWhiteSpace(part.TermTypeName)) {
|
||||
if (string.IsNullOrWhiteSpace(part.TermTypeName)) {
|
||||
// is it a new taxonomy ?
|
||||
taxonomyService.CreateTermContentType(part);
|
||||
}
|
||||
|
Reference in New Issue
Block a user