mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added feature flag condition to view user log
refs. https://github.com/TryGhost/Toolbox/issues/356
This commit is contained in:
parent
e06c4c3e0b
commit
2d8b907449
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
|||
{{/if}}
|
||||
|
||||
<section class="view-actions">
|
||||
{{#if (or this.userActionsAreVisible this.session.user.isAdmin)}}
|
||||
{{#if (or this.userActionsAreVisible (and (feature 'auditLog') this.session.user.isAdmin))}}
|
||||
<span class="dropdown">
|
||||
<GhDropdownButton @dropdownName="user-actions-menu" @classNames="gh-btn gh-btn-white gh-btn-icon icon-only user-actions-cog" @title="User Actions" data-test-user-actions={{true}}>
|
||||
<span>
|
||||
|
@ -68,11 +68,14 @@
|
|||
</li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (feature 'auditLog')}}
|
||||
<li>
|
||||
<LinkTo @route="settings.audit-log" @query={{hash user=user.id}}>
|
||||
<span>View user activity</span>
|
||||
</LinkTo>
|
||||
</li>
|
||||
{{/if}}
|
||||
</GhDropdown>
|
||||
</span>
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Reference in a new issue