Current time: 01-09-2009, 08:39 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] [WOL] - "Viewing No Permissions Page" not shown [C-Michael83]
10-02-2008, 12:55 PM (This post was last modified: 11-29-2008 10:49 PM by Ryan Gordon.)
Post: #1
[F] [WOL] - "Viewing No Permissions Page" not shown [C-Michael83]
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+:
PHP Code:
// Fetch the WOL activity
        
$user['activity'] = fetch_wol_activity($user['location']); 

Add Below:
PHP Code:
$user['activity']['nopermission'] = $user['nopermission']; 

Originally found by Zwoetzen

MyBBoard.de Mentor
Find all posts by this user
Quote this message in a reply
10-15-2008, 03:32 AM
Post: #2
RE: [WOL] - "Viewing No Permissions Page" not shown
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-02-2008, 05:11 PM
Post: #3
RE: [WOL] - "Viewing No Permissions Page" not shown
Marked as bogus until more information is provided to be able to properly reproduced

[Image: ryangordon.png]

My Blog - My Mods - My Site - There are no such things as bugs;
Just carefully articulated random features.

Figures lie, and liars figure
Visit this user's website Find all posts by this user
Quote this message in a reply
11-29-2008, 10:42 PM (This post was last modified: 11-30-2008 11:39 AM by Kioshi.)
Post: #4
RE: [B] [WOL] - "Viewing No Permissions Page" not shown
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

MyBBoard.de Mentor
Find all posts by this user
Quote this message in a reply
11-30-2008, 06:14 AM
Post: #5
[F] [WOL] - "Viewing No Permissions Page" not shown
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

Who is Yumi?


It's still the KFC crazed person who can't spell names properly with annoying AlTeRnAtInG CaPiTaLs in the NaMe
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: