aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-05-30 16:40:16 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-05-30 16:40:16 +0000
commiteaeaf5bfb60e4751b72a41d5ee94e59981ccce9f (patch)
tree4e9017efdfb09d15b7306e465bb4b630f912d60e /phpBB/includes/auth.php
parentea04b3bcbc12d0eaa6443ab509922495755b1244 (diff)
downloadforums-eaeaf5bfb60e4751b72a41d5ee94e59981ccce9f.tar
forums-eaeaf5bfb60e4751b72a41d5ee94e59981ccce9f.tar.gz
forums-eaeaf5bfb60e4751b72a41d5ee94e59981ccce9f.tar.bz2
forums-eaeaf5bfb60e4751b72a41d5ee94e59981ccce9f.tar.xz
forums-eaeaf5bfb60e4751b72a41d5ee94e59981ccce9f.zip
hopefully fixing bug #2022 with this
git-svn-id: file:///svn/phpbb/trunk@5987 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth.php')
-rw-r--r--phpBB/includes/auth.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php
index f5e7610786..d9887d569d 100644
--- a/phpBB/includes/auth.php
+++ b/phpBB/includes/auth.php
@@ -89,6 +89,9 @@ class auth
/**
* Look up an option
* if the option is prefixed with !, then the result becomes negated
+ *
+ * If a forum id is specified the local option will be combined with a global option if one exist.
+ * If a forum id is not specified, only the global option will be checked.
*/
function acl_get($opt, $f = 0)
{
@@ -116,7 +119,8 @@ class auth
}
// Is this option a local permission setting?
- if (isset($this->acl_options['local'][$opt]))
+ // But if we check for a global option only, we won't combine the options...
+ if ($f != 0 && isset($this->acl_options['local'][$opt]))
{
if (isset($this->acl[$f]))
{