From 24923c6216b9008070943a19de3e680799c8a7df Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Sun, 24 Sep 2023 19:14:33 -0400 Subject: [PATCH] add link to edit news entries on mod dashboard --- inc/config.php | 2 +- templates/mod/dashboard.html | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/inc/config.php b/inc/config.php index 1b4dba88..1abec46d 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1498,7 +1498,7 @@ // Capcode permissions. $config['mod']['capcode'] = array( JANITOR => array('Janitor'), - MOD => array('Mod'), + MOD => array('Mod'), ADMIN => true ); diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 03ad0b85..68efe227 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -82,6 +82,13 @@ {% endif %} +{% if (mod|hasPermission(config.mod.news)) %} +
  • + + News Entries + +
  • +{% endif %} {% if config.debug %}