From 6f894ad4ee749cff0131968a9548b83c59254a91 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 3 Jul 2011 23:11:31 +1000 Subject: made the per-board mod functionality optional --- inc/mod.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc/mod.php') diff --git a/inc/mod.php b/inc/mod.php index 0acb3864..3b85d50a 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -15,6 +15,8 @@ } function hasPermission($action = null, $board = null, $_mod = null) { + global $config; + if(isset($_mod)) $mod = &$_mod; else @@ -23,7 +25,7 @@ if(isset($action) && $mod['type'] < $action) return false; - if(isset($board) && !in_array($board, $mod['boards'])) + if(isset($board) && !$config['mod']['skip_per_board'] && !in_array($board, $mod['boards'])) return false; return true; -- cgit v1.3