MyBB Community Forums

Full Version: [F] [WOL] - "Viewing No Permissions Page" not shown [C-Michael83]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
  • 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
Hmmm, I can't reproduce that.

On my end User A (the one with the denying permissions) reports on the Who's Online (using User B) the Forum's index.
Marked as bogus until more information is provided to be able to properly reproduced
Ohh, I never saw this moving in here. Ok I'm trying to be a bit more precisly.

If a member views the "No Permissions Page", his location in the "Who is Online" list should say "Viewing No Permissions Page" but it doesn't.

And that with the forum was just an example.

Legend:
User A - With Permissions
User B - Without Permission

It should say:
Username - Last Activity - Location
User A - 11:40 PM - Viewing Who's Online
User B - 11:39 PM - Viewing No Permissions Page

But it says:
Username - Last Activity - Location
User A - 11:40 PM - Viewing Who's Online
User B - 11:39 PM - Viewing Forum X
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group