mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing that displaying the publish button in the user editor should depend on ManageUsers permissions instead of PublishContent (#8886)
This commit is contained in:
@@ -254,6 +254,7 @@
|
|||||||
<Content Include="Views\Account\RequestChallengeEmail.cshtml" />
|
<Content Include="Views\Account\RequestChallengeEmail.cshtml" />
|
||||||
<Content Include="Views\Content.UnpublishButton-User.cshtml" />
|
<Content Include="Views\Content.UnpublishButton-User.cshtml" />
|
||||||
<Content Include="Views\Content.DeleteButton-User.cshtml" />
|
<Content Include="Views\Content.DeleteButton-User.cshtml" />
|
||||||
|
<Content Include="Views\Content.PublishButton-User.cshtml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Views\Account\ChangeExpiredPassword.cshtml" />
|
<Content Include="Views\Account\ChangeExpiredPassword.cshtml" />
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
@using Orchard.ContentManagement
|
||||||
|
@using Orchard.Users
|
||||||
|
|
||||||
|
@if (Authorizer.Authorize(Permissions.ManageUsers, (IContent)Model.ContentItem))
|
||||||
|
{
|
||||||
|
<fieldset class="publish-button">
|
||||||
|
<button class="primaryAction" type="submit" name="submit.Publish" value="submit.Publish">@T("Publish")</button>
|
||||||
|
</fieldset>
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user