aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-07-16 22:11:32 -0400
committerNils Adermann <naderman@naderman.de>2011-07-16 22:11:32 -0400
commit61e33675be3f7bac2d12a4a1aaaa0894118459c0 (patch)
treee14c22fa1833055ebdcbd47abb556afb09b3e43c
parenta33b67fd1a80463602c3603f72ad0f96dd3d9b09 (diff)
parent03b1f500e762af811249ba3769e1292b3742f25b (diff)
downloadforums-61e33675be3f7bac2d12a4a1aaaa0894118459c0.tar
forums-61e33675be3f7bac2d12a4a1aaaa0894118459c0.tar.gz
forums-61e33675be3f7bac2d12a4a1aaaa0894118459c0.tar.bz2
forums-61e33675be3f7bac2d12a4a1aaaa0894118459c0.tar.xz
forums-61e33675be3f7bac2d12a4a1aaaa0894118459c0.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10252] Correctly document behaviour of acl_get_list() for a_ permission
-rw-r--r--phpBB/includes/auth.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php
index 53b0c5ff2c..25f26e5334 100644
--- a/phpBB/includes/auth.php
+++ b/phpBB/includes/auth.php
@@ -349,6 +349,14 @@ class auth
/**
* Get permission listing based on user_id/options/forum_ids
+ *
+ * Be careful when using this function with permissions a_, m_, u_ and f_ !
+ * It may not work correctly. When a user group grants an a_* permission,
+ * e.g. a_foo, but the user's a_foo permission is set to "Never", then
+ * the user does not in fact have the a_ permission.
+ * But the user will still be listed as having the a_ permission.
+ *
+ * For more information see: http://tracker.phpbb.com/browse/PHPBB3-10252
*/
function acl_get_list($user_id = false, $opts = false, $forum_id = false)
{