diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-07-03 23:11:31 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-07-03 23:11:31 +1000 |
| commit | 6f894ad4ee749cff0131968a9548b83c59254a91 (patch) | |
| tree | 04e0ddeda26ae93f0e32d6b2ed506e1c40b58169 /inc | |
| parent | e3cba2b450bdde8725e31567f761ca9aaa63230a (diff) | |
made the per-board mod functionality optional
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/config.php | 3 | ||||
| -rw-r--r-- | inc/mod.php | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index 0c7dfb8f..e495e4da 100644 --- a/inc/config.php +++ b/inc/config.php @@ -367,6 +367,9 @@ // Permissions // What level of administration you need to: + // Don't worry about per-board moderators. Let all mods moderate any board. + $config['mod']['skip_per_board'] = true; + /* Post Controls */ // View IP addresses $config['mod']['show_ip'] = MOD; 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; |
