Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] [WOL] - "Viewing No Permissions Page" not shown [C-Michael83]
#1
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
Regards,
Manuel

Don't ask me for support over PM, please.
#2
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.
Microsoft is like Umbrela Co., they create the virus and the vaccine, the zombie infestation is just a collateral effect.
#3
Marked as bogus until more information is provided to be able to properly reproduced
#4
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
Regards,
Manuel

Don't ask me for support over PM, please.
#5
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


Forum Jump:


Users browsing this thread: 1 Guest(s)