summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rothstein2012-12-27 16:23:31 (GMT)
committer David Rothstein2012-12-27 16:23:31 (GMT)
commit5c9c9a689baf2573aa3bb68c7b9ee471cce753a0 (patch)
tree00b775f9d0e354fa0560232b27f67257c3e21c5b
parent9569999cd00b409ff4e1222c58aded78eb26597f (diff)
Issue #1864188 by johnshortess | hefox: Fixed user_filters() invokes hook_permission() with argument 'permission' ($function('permission')).
-rw-r--r--modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 622fe4d..07ce1be 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -3353,7 +3353,7 @@ function user_filters() {
$options = array();
foreach (module_implements('permission') as $module) {
$function = $module . '_permission';
- if ($permissions = $function('permission')) {
+ if ($permissions = $function()) {
asort($permissions);
foreach ($permissions as $permission => $description) {
$options[t('@module module', array('@module' => $module))][$permission] = t($permission);