mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
✨ Hid "feature this post" toggle when logged in as an Author or Contributor
no issue - hides the "Featured this post" toggle in the post settings menu when the currently logged in user is an Author or Contributor - https://forum.ghost.org/t/remove-the-permission-to-set-posts-to-featured/7441/5?u=kevin
This commit is contained in:
parent
48df541989
commit
3697d15ec5
|
@ -126,6 +126,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
{{#unless this.session.user.isAuthorOrContributor}}
|
||||
<div class="form-group for-checkbox">
|
||||
<label class="checkbox" for="featured" {{action "toggleFeatured" bubbles="false"}}>
|
||||
<input
|
||||
|
@ -139,6 +140,7 @@
|
|||
<p>Feature this {{post.displayName}}</p>
|
||||
</label>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
{{gh-psm-template-select
|
||||
post=post
|
||||
|
@ -409,10 +411,12 @@
|
|||
pane is shown
|
||||
--}}
|
||||
{{#if _showThrobbers}}
|
||||
{{gh-tour-item "featured-post"
|
||||
target="label[for='featured'] p"
|
||||
throbberAttachment="middle middle"
|
||||
throbberOffset="0px -20px"
|
||||
popoverTriangleClass="bottom-right"
|
||||
}}
|
||||
{{#unless this.session.user.isAuthorOrContributor}}
|
||||
{{gh-tour-item "featured-post"
|
||||
target="label[for='featured'] p"
|
||||
throbberAttachment="middle middle"
|
||||
throbberOffset="0px -20px"
|
||||
popoverTriangleClass="bottom-right"
|
||||
}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue