2008-10-02, 12:55 PM
Even if a user has no permission to view a specific page (he gets the error_no_permission() - Page), is his entered location in the "Who is Online" - List shown instead of "Viewing No Permissions Page"
Reproduction
Fix:
Open up online.php and search for line 170+:
Add Below:
Originally found by Zwoetzen
Reproduction
- Create a New Sub-Forum and deny the permissions of Usergroup A
- Enter the URL to this forum manually with a user of the Usergroup A
- View the "Who is Online" - Page with another user and he will see the complete location (e.g. Viewing Forum X) instead of "Viewing No Permissions Page"
Fix:
Open up online.php and search for line 170+:
// Fetch the WOL activity
$user['activity'] = fetch_wol_activity($user['location']);
Add Below:
$user['activity']['nopermission'] = $user['nopermission'];
Originally found by Zwoetzen