Fix Issue #299
This commit is contained in:
parent
8323d9272d
commit
3605937049
@ -25,6 +25,9 @@ Version 2.1 ()
|
||||
Version 2.0.1 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Issue 299: Do not display dashboard for users with no permission
|
||||
to perform actions in the backend (frontend-users)
|
||||
|
||||
* Make "rewriteURL" smarty modifier available to do a
|
||||
{$CONST.PATH_ARCHIVE|rewriteURL} within a smarty template file.
|
||||
|
||||
|
@ -110,6 +110,8 @@ $data['entries'] = $entries;
|
||||
$data['urltoken'] = serendipity_setFormToken('url');
|
||||
$data['token'] = serendipity_setFormToken();
|
||||
|
||||
$data['no_create'] = $serendipity['no_create'];
|
||||
|
||||
echo serendipity_smarty_show('admin/overview.inc.tpl', $data);
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
|
@ -32,6 +32,8 @@
|
||||
</section>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $no_create !== true}
|
||||
<section id="dashboard_comments" class="equal_heights quick_list dashboard_widget">
|
||||
<h3>{if 'adminComments'|checkPermission}<a href="serendipity_admin.php?serendipity[adminModule]=comments">{/if}{$CONST.COMMENTS}{if 'adminComments'|checkPermission}</a>{/if}</h3>
|
||||
|
||||
@ -110,6 +112,7 @@
|
||||
</section>
|
||||
|
||||
{serendipity_hookPlugin hook="backend_dashboard" hookAll="true"}
|
||||
{/if}
|
||||
|
||||
<section id="s9y_links" class="clearfix mfp-hide">
|
||||
<h3>{$CONST.FURTHER_LINKS}</h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user