Commit 4dbfd5e6 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#169987 by Pancho, catch: the missing forum edit permission for consistency

parent 32df0101
...@@ -306,6 +306,9 @@ function forum_access($op, $node, $account) { ...@@ -306,6 +306,9 @@ function forum_access($op, $node, $account) {
if (user_access('edit own forum topics', $account) && ($account->uid == $node->uid)) { if (user_access('edit own forum topics', $account) && ($account->uid == $node->uid)) {
return TRUE; return TRUE;
} }
if (user_access('edit any forum topic')) {
return TRUE;
}
} }
} }
...@@ -313,7 +316,7 @@ function forum_access($op, $node, $account) { ...@@ -313,7 +316,7 @@ function forum_access($op, $node, $account) {
* Implementation of hook_perm(). * Implementation of hook_perm().
*/ */
function forum_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');
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment