mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 07:46:31 +01:00
Access to Latest Page Updates for users with admin.pages.list privilege
This mod allows users with admin.pages.list provilege to see Latest Page Updates on Dashboard (user can see page list so there is no point in disallowig them to see list of recently updated pages). It also removes unnecessarry and misleading message about dashboard access denied instead of Latest Page Updates area (user still may have access to stats on Dasboard for example; printing such messages should be avoided for cleaner UI). Author-Change-Id: IB#1120576
This commit is contained in:
committed by
Matias Griese
parent
d2b75dc4ee
commit
9b00cd85c7
@@ -1,4 +1,4 @@
|
||||
{% if authorize(['admin.pages', 'admin.super']) %}
|
||||
{% if authorize(['admin.pages.list', 'admin.pages', 'admin.super']) %}
|
||||
<div id="latest">
|
||||
<div class="button-bar">
|
||||
<a class="button" href="{{ admin_route('/pages') }}"><i class="fa fa-fw fa-file-text-o"></i>{{ "PLUGIN_ADMIN.MANAGE_PAGES"|t }}</a>
|
||||
@@ -15,6 +15,4 @@
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="padding">You don't have sufficient access to view the dashboard...</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user