Skip to content

Commit

Permalink
Fix access check for user given only by user_id (fixing #892 )
Browse files Browse the repository at this point in the history
  • Loading branch information
mysnip committed Apr 18, 2013
1 parent 0e9b747 commit 2dc7c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/api/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ function phorum_api_user_check_access($permission, $forum_id = 0, $user = 0)
if (empty($user)) {
$user = $PHORUM['user'];
} elseif (!is_array($user)) {
$user = phorum_api_user_get($user);
$user = phorum_api_user_get($user, true);
}

// Inactive users have no permissions at all.
Expand Down

0 comments on commit 2dc7c98

Please # to comment.