diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-10-13 10:07:02 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-10-13 10:07:02 +0000 |
commit | b5b2610a1f5741ef120ab48bfe00cb8ec3d272ee (patch) | |
tree | 6d27bd47821c1d8c9d7bef4fc6b152c401e0757e | |
parent | 67282e07a698f975efcf345ed4b6f3dce5d43e64 (diff) | |
download | forums-b5b2610a1f5741ef120ab48bfe00cb8ec3d272ee.tar forums-b5b2610a1f5741ef120ab48bfe00cb8ec3d272ee.tar.gz forums-b5b2610a1f5741ef120ab48bfe00cb8ec3d272ee.tar.bz2 forums-b5b2610a1f5741ef120ab48bfe00cb8ec3d272ee.tar.xz forums-b5b2610a1f5741ef120ab48bfe00cb8ec3d272ee.zip |
errm, we actually want that.
git-svn-id: file:///svn/phpbb/trunk@8170 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/acp/acp_forums.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php index afbde3cd57..38ff18773f 100644 --- a/phpBB/includes/acp/acp_forums.php +++ b/phpBB/includes/acp/acp_forums.php @@ -41,9 +41,7 @@ class acp_forums $forum_id = request_var('f', 0); $this->parent_id = request_var('parent_id', 0); - $forum_data = $errors = array(); - if ($update && !check_form_key($form_key)) { $update = false; @@ -182,7 +180,7 @@ class acp_forums // Copy permissions? if ($forum_perm_from && !empty($forum_perm_from) && $forum_perm_from != $forum_data['forum_id'] && - (($action != 'edit') || $auth->acl_get('acl_a_fauth && acl_a_authusers && acl_a_authgroups && acl_a_mauth'))) + (($action != 'edit') || empty($forum_id) || ($auth->acl_get('a_fauth') && $auth->acl_get('a_authusers') && $auth->acl_get('a_authgroups') && $auth->acl_get('a_mauth')))) { // if we edit a forum delete current permissions first if ($action == 'edit') @@ -679,12 +677,10 @@ class acp_forums 'S_PRUNE_STICKY' => ($forum_data['forum_flags'] & FORUM_FLAG_PRUNE_STICKY) ? true : false, 'S_DISPLAY_ACTIVE_TOPICS' => ($forum_data['forum_flags'] & FORUM_FLAG_ACTIVE_TOPICS) ? true : false, 'S_ENABLE_POST_REVIEW' => ($forum_data['forum_flags'] & FORUM_FLAG_POST_REVIEW) ? true : false, - 'S_CAN_COPY_PERMISSIONS' => (($action != 'edit') || $auth->acl_get('acl_a_fauth && acl_a_authusers && acl_a_authgroups && acl_a_mauth')), + 'S_CAN_COPY_PERMISSIONS' => ($action != 'edit' || empty($forum_id) || ($auth->acl_get('a_fauth') && $auth->acl_get('a_authusers') && $auth->acl_get('a_authgroups') && $auth->acl_get('a_mauth'))) ? true :false, ) ); - return; - break; case 'delete': |