aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/session.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 1fb3e88b70..3821f21579 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -589,9 +589,34 @@ class auth
}
}
+ // Needs to change ... check founder status when updating cache?
return ($this->founder) ? true : $cache[$f][$opt];
}
+ function acl_getf($opt)
+ {
+ static $cache;
+
+ if (isset($this->acl_options['local'][$opt]))
+ {
+ foreach ($this->acl['local'] as $f => $bitstring)
+ {
+ if (!isset($cache[$opt][$f]))
+ {
+ $cache[$opt][$f] = false;
+
+ $cache[$opt][$f] = $bitstring{$this->acl_options['local'][$opt]};
+ if (isset($this->acl_options['global'][$opt]))
+ {
+ $cache[$opt][$f] |= $this->acl['global']{$this->acl_options['global'][$opt]};
+ }
+ }
+ }
+ }
+
+ return $cache[$opt];
+ }
+
function acl_gets()
{
$args = func_get_args();