mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 18:27:55 +08:00
[Fixes #6397] Allowing the default tenant settings to be edited
This commit is contained in:
@@ -139,10 +139,9 @@ namespace Orchard.MultiTenancy.Controllers {
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
var tenant = _tenantService.GetTenants().FirstOrDefault(ss => ss.Name == viewModel.Name);
|
||||
|
||||
if (tenant == null)
|
||||
return HttpNotFound();
|
||||
else if (tenant.Name == _thisShellSettings.Name)
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
if (!ModelState.IsValid) {
|
||||
return View(viewModel);
|
||||
|
Reference in New Issue
Block a user