mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/9510] Unable to copy permissions from and to forums you cannot see
This commit fixes the bug mentioned, plus a large number of regressions caused by changing the behavior of make_forum_select() (in svn r10427, dated Jan 18, 2010). It also rolls back the changes from branch "bug/58415", which are no longer needed. PHPBB3-9510
This commit is contained in:
parent
63d172e379
commit
ed0a26ab16
1 changed files with 1 additions and 5 deletions
|
@ -96,16 +96,12 @@ function make_forum_select($select_id = false, $ignore_id = false, $ignore_acl =
|
||||||
$right = $row['right_id'];
|
$right = $row['right_id'];
|
||||||
$disabled = false;
|
$disabled = false;
|
||||||
|
|
||||||
if (!$ignore_acl && $auth->acl_get('f_list', $row['forum_id']))
|
if (!$ignore_acl && $auth->acl_gets(array('f_list', 'a_forum', 'a_forumadd', 'a_forumdel'), $row['forum_id']))
|
||||||
{
|
{
|
||||||
if ($only_acl_post && !$auth->acl_get('f_post', $row['forum_id']) || (!$auth->acl_get('m_approve', $row['forum_id']) && !$auth->acl_get('f_noapprove', $row['forum_id'])))
|
if ($only_acl_post && !$auth->acl_get('f_post', $row['forum_id']) || (!$auth->acl_get('m_approve', $row['forum_id']) && !$auth->acl_get('f_noapprove', $row['forum_id'])))
|
||||||
{
|
{
|
||||||
$disabled = true;
|
$disabled = true;
|
||||||
}
|
}
|
||||||
else if (!$only_acl_post && !$auth->acl_gets(array('f_list', 'a_forum', 'a_forumadd', 'a_forumdel'), $row['forum_id']))
|
|
||||||
{
|
|
||||||
$disabled = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (!$ignore_acl)
|
else if (!$ignore_acl)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue