diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-20 08:40:19 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-20 08:40:19 +0000 |
commit | 4dbfd5e66c2652514253da7c3d6010191722ec71 (patch) | |
tree | cb6c80373c98711eb6f096acf397bae1d7838762 /modules | |
parent | 32df01011f344aba1bf8802c30a473ab1dc288f7 (diff) | |
download | brdo-4dbfd5e66c2652514253da7c3d6010191722ec71.tar.gz brdo-4dbfd5e66c2652514253da7c3d6010191722ec71.tar.bz2 |
#169987 by Pancho, catch: the missing forum edit permission for consistency
Diffstat (limited to 'modules')
-rw-r--r-- | modules/forum/forum.module | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module index b76e30f18..0ecf61d7c 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -306,6 +306,9 @@ function forum_access($op, $node, $account) { if (user_access('edit own forum topics', $account) && ($account->uid == $node->uid)) { return TRUE; } + if (user_access('edit any forum topic')) { + return TRUE; + } } } @@ -313,7 +316,7 @@ function forum_access($op, $node, $account) { * Implementation of hook_perm(). */ function forum_perm() { - return array('create forum topics', 'edit own forum topics', 'administer forums'); + return array('create forum topics', 'edit own forum topics', 'edit any forum topic', 'administer forums'); } /** |