Skip to content

Commit

Permalink
Now it's possible to test board access even for regular members in ge…
Browse files Browse the repository at this point in the history
…tBoardList - fixes #2163

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Aug 9, 2015
1 parent 2842c13 commit 46bf4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/subs/Boards.subs.php
Expand Up @@ -1044,7 +1044,7 @@ function getBoardList($boardListOptions = array(), $simple = false)
);

// Do we want access informations?
if (!empty($boardListOptions['access']))
if (isset($boardListOptions['access']) && $boardListOptions['access'] !== false)
{
$return_value[$row['id_board']]['allow'] = !(empty($row['can_access']) || $row['can_access'] == 'f');
$return_value[$row['id_board']]['deny'] = !(empty($row['cannot_access']) || $row['cannot_access'] == 'f');
Expand Down

0 comments on commit 46bf4f6

Please sign in to comment.