diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-02-16 23:32:28 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-02-16 23:32:28 +1100 |
| commit | 5eb0d7e8e2aa027906b601672eb6c69bd3c900a4 (patch) | |
| tree | db0a667f75b9e78551efe403cf5ae9bea561e102 /inc/mod.php | |
| parent | 56821eb375096f6cfd2dc56765ed36b51b892d9e (diff) | |
moved hasPermission() to functions.php
Diffstat (limited to 'inc/mod.php')
| -rw-r--r-- | inc/mod.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/inc/mod.php b/inc/mod.php index caae570b..556a274e 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -25,26 +25,6 @@ return $hash; } - function hasPermission($action = null, $board = null, $_mod = null) { - global $config; - - if(isset($_mod)) - $mod = &$_mod; - else - global $mod; - - if(isset($action) && $mod['type'] < $action) - return false; - - if(!isset($board)) - return true; - - if(!$config['mod']['skip_per_board'] && !in_array('*', $mod['boards']) && !in_array($board, $mod['boards'])) - return false; - - return true; - } - function login($username, $password, $makehash=true) { global $mod; |
