Error when moderator tries to access mcp from Global topic

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
theallzaz
Registered User
Posts: 84
Joined: Tue Apr 16, 2013 2:41 pm

Error when moderator tries to access mcp from Global topic

Post by theallzaz »

Support Request Template
What version of phpBB are you using? phpBB 3.0.11
What is your board's URL? No answer given
Who do you host your board with? No answer given
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? No
What styles do you currently have installed? subsilver2, prosilver
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? Comfortable with PHP and phpBB
What username can be used to view this issue? No answer given
What password can be used to view this issue? No answer given
When did your problem begin? Always
Please describe your problem. I think a found a bug. I have installed again without mods just to test.

When a moderator (not global moderator) access a Global topic created from anoter forum, and tries to click on Moderator Control Panel link, this error shows:

General Error
Module not accessible


What should I do to fix this?
Generated by SRT Generator
User avatar
AmigoJack
Registered User
Posts: 6028
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Error when moderator tries to access mcp from Global top

Post by AmigoJack »

To access MCP > View topic you need to have at least one moderator permission on the specified forum. By "a moderator (not global moderator)" you're talking about a forum moderator. Global topics are not bound to any forum, hence the user can't moderate it unless he has a global moderator permission.

This behaviour is intended. The message almost always refers to missing permissions.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
theallzaz
Registered User
Posts: 84
Joined: Tue Apr 16, 2013 2:41 pm

Re: Error when moderator tries to access mcp from Global top

Post by theallzaz »

Yes, this error shows only for user who do not have permission to moderate all forums. Amigo, do you know any way to "hide" the Moderator Control Panel link inside a Global topic?

I wanna hide for everyone because i don't like this error showing

Please tell me do you know a way :lol:
User avatar
Lumpy Burgertushie
Registered User
Posts: 68928
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Error when moderator tries to access mcp from Global top

Post by Lumpy Burgertushie »

nobody but moderators can see the mcp link to begin with.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
AmigoJack
Registered User
Posts: 6028
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Error when moderator tries to access mcp from Global top

Post by AmigoJack »

The link being shown is the best compromise in terms of performance: it only checks if the viewer has at least one moderator permission at all - checking if he does have either global moderator permissions or any local (speak: forum) moderator permission each time any topic is displayed would have more impact on the server - do you really want that?
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
theallzaz
Registered User
Posts: 84
Joined: Tue Apr 16, 2013 2:41 pm

Re: Error when moderator tries to access mcp from Global top

Post by theallzaz »

AmigoJack wrote:The link being shown is the best compromise in terms of performance: it only checks if the viewer has at least one moderator permission at all - checking if he does have either global moderator permissions or any local (speak: forum) moderator permission each time any topic is displayed would have more impact on the server - do you really want that?
Hm.. you are right.

But about the "Module not accessible" error? Is there a way to avoid this?

Thanks
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Error when moderator tries to access mcp from Global top

Post by Oyabun1 »

I think a better error handler than just throwing a general error would be useful, so I've submitted a bug report about this: PHPBB3-11625
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Locked

Return to “[3.0.x] Support Forum”