aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-07-22 11:30:50 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-07-22 11:30:50 +0200
commite1cbe735380d98f2b87f4243317fd55cbc0439af (patch)
treef7047bc58b88f666051ee4eafe001ce898763672 /phpBB/posting.php
parent8bfbd7782815aeee6ada6fa8a495b780fc21cb3d (diff)
parent7d31232846e29311e5b76bf32f41f64da7985a79 (diff)
downloadforums-e1cbe735380d98f2b87f4243317fd55cbc0439af.tar
forums-e1cbe735380d98f2b87f4243317fd55cbc0439af.tar.gz
forums-e1cbe735380d98f2b87f4243317fd55cbc0439af.tar.bz2
forums-e1cbe735380d98f2b87f4243317fd55cbc0439af.tar.xz
forums-e1cbe735380d98f2b87f4243317fd55cbc0439af.zip
Merge pull request #3781 from Elsensee/ticket/8708-2
[ticket/8708] Add extra permission for posting global announcements * Elsensee/ticket/8708-2: [ticket/8708] Apply permission 'f_announce_global' [ticket/8708] Add f_announce_global permission
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 584b24d41a..47fdb2d378 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1202,6 +1202,9 @@ if ($submit || $preview || $refresh)
switch ($post_data['topic_type'])
{
case POST_GLOBAL:
+ $auth_option = 'f_announce_global';
+ break;
+
case POST_ANNOUNCE:
$auth_option = 'f_announce';
break;