add link to edit news entries on mod dashboard

This commit is contained in:
towards-a-new-leftypol 2023-09-24 19:14:33 -04:00
parent 786773a2a8
commit 24923c6216
2 changed files with 8 additions and 1 deletions

View File

@ -1498,7 +1498,7 @@
// Capcode permissions. // Capcode permissions.
$config['mod']['capcode'] = array( $config['mod']['capcode'] = array(
JANITOR => array('Janitor'), JANITOR => array('Janitor'),
MOD => array('Mod'), MOD => array('Mod'),
ADMIN => true ADMIN => true
); );

View File

@ -82,6 +82,13 @@
</a> </a>
</li> </li>
{% endif %} {% endif %}
{% if (mod|hasPermission(config.mod.news)) %}
<li>
<a href="/mod.php?edit_news">
News Entries
</a>
</li>
{% endif %}
{% if config.debug %} {% if config.debug %}