Merge branch 'develop-ascraeus' into develop

* develop-ascraeus:
  [ticket/12477] Tab instead of spaces.
  [ticket/12477] Fix logic to prevent admin-deactivated users from getting PM's.
This commit is contained in:
Andreas Fischer 2014-05-02 22:16:11 +02:00
commit c33cb67ec9
2 changed files with 3 additions and 3 deletions

View file

@ -1731,7 +1731,7 @@ function show_profile($data, $user_notes_enabled = false, $warn_user_enabled = f
$data['user_type'] != USER_IGNORE && $data['user_type'] != USER_IGNORE &&
// They must not be deactivated by the administrator // They must not be deactivated by the administrator
($data['user_type'] != USER_INACTIVE && $data['user_inactive_reason'] == INACTIVE_MANUAL) && ($data['user_type'] != USER_INACTIVE || $data['user_inactive_reason'] != INACTIVE_MANUAL) &&
// They must be able to read PMs // They must be able to read PMs
sizeof($auth->acl_get_list($user_id, 'u_readpm')) && sizeof($auth->acl_get_list($user_id, 'u_readpm')) &&

View file

@ -1609,7 +1609,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
$user_cache[$poster_id]['user_type'] != USER_IGNORE && $user_cache[$poster_id]['user_type'] != USER_IGNORE &&
// They must not be deactivated by the administrator // They must not be deactivated by the administrator
($user_cache[$poster_id]['user_type'] != USER_INACTIVE && $user_cache[$poster_id]['user_inactive_reason'] == INACTIVE_MANUAL) && ($user_cache[$poster_id]['user_type'] != USER_INACTIVE || $user_cache[$poster_id]['user_inactive_reason'] != INACTIVE_MANUAL) &&
// They must be able to read PMs // They must be able to read PMs
in_array($poster_id, $can_receive_pm_list) && in_array($poster_id, $can_receive_pm_list) &&