Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Access denied - you do not have permission
Avatar
Dave
Member
sp_UserOfflineSmall Offline
Nov 10, 2014 - 8:00 pm

Yellow Swordfish said
Way, way down the dump of values you will find an array called 'auths-map'. Can you tell me what is displayed at index position 18 please?
Then below the auths-map list there is an 'auths' section for each individual permission. perhaops you cou;d also tell me what it shows for position 18.

FYI, the user does show as a Moderator under [forum_moderators] => Array
Under [auths] => Array
[18] = [auth_id] => 18
[auth_name] => delete_any_post
[auth_desc] => Can delete any post
[active] => 1
[ignored] => 0
[enabling] => 0
[admin_negate] => 0
[auth_cat] => 5
[warning] =>

Under [auths_map] => Array position 18 is [delete_any_post] => 18

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 10, 2014 - 10:01 pm

not sure where andy was going with his question, so will leave that to him...  I do agree though that the notice is unlikely unrelated... those seem to come from ajax type requests where things may not be set up (though we cannot replicate on call)...

for the moderator user in question, if you go to their profile (you as admin can do this), and go to profile - permissions and look at the forum in question, what do you see?

Avatar
Dave
Member
sp_UserOfflineSmall Offline
Nov 10, 2014 - 11:10 pm

Here's a screenshot of the permissions.
permissions.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 11, 2014 - 4:11 am

I have to say I am somewhat stumped on this one. But first...:

@mr-papa - I was asking about the auth 18 index value simply because it repeatedly appears in the SP error log as an undefined offset. No - I do not think this is responsible for the issue with the moderator user but it does seem odd to find that it is, actually, defined.

OK - can we just recap here to make sure I have everything correct.

You have one user (only) who happens to be a moderator who is unable to reply to any posts. Upon submitting a post reply from the editor, it starts to save and then stops with an 'Access denied – you do not have permission' message and, I assume, a blank screen. This result can be verified on a different PC thus suggesting it is not a local PC or browser issue.

Is that accurate? 

Perhaps another data dump is required here so I can take a long look at what is getting passed. Using the Data Inspector again, could you turn on the control data for 'spThisUser' and then log in AS the moderator user with the problem. It is their data we need to look at.

Now - you are not going to want to display this in the public forums here. It is also somewhat lengthy so what I would really prefer if possible is if you could copy and paste the content to a text file and then email it to me as an attachment. I will send you a PM with an email address to use if that is OK.

Maybe I can spot something specific. I can at least check the data against all the access denied points.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Dave
Member
sp_UserOfflineSmall Offline
Nov 11, 2014 - 5:23 am

Yellow Swordfish said
You have one user (only) who happens to be a moderator who is unable to reply to any posts. Upon submitting a post reply from the editor, it starts to save and then stops with an 'Access denied – you do not have permission' message and, I assume, a blank screen. This result can be verified on a different PC thus suggesting it is not a local PC or browser issue?
Is that accurate?

Absolutely!

Perhaps another data dump is required here so I can take a long look at what is getting passed. Using the Data Inspector again, could you turn on the control data for 'spThisUser' and then log in AS the moderator user with the problem. It is their data we need to look at.

There was no data displayed when the page rendered (logged in as person in question in a separate browser).

I'll reply to your PM with login credentials for both admin and user.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 11, 2014 - 5:46 am

No - I was being stupid. It only displays to the person who actually turned the inspector on. And I suppose your moderator won't have permission to do that. I may use the login credentials although not sure what I would be hoping to find...
Let me have another think...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 11, 2014 - 9:03 am

Ok - i have spent the last half an hour or more looking through all of the data and settings and I have to admit I can find nothing wrong. I do not like the number of error log entries you get which suggests some missing settings or something somewhere but that is not an issue as far as your moderator is concerned.

I need to talk this through here and also trawl through the code and compile a list of all the conditions for which that denied message may be triggered and perhaps see if we can come at the problem from that end of the stick...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Dave
Member
sp_UserOfflineSmall Offline
Nov 11, 2014 - 9:24 am

Not a problem, Andy. Your help is definitely appreciated!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 11, 2014 - 10:36 pm

sounds to me like the next step is to see if there is a staging or test server available that has the same issue where we can get some ftp credentials and add some debug code...  additionally, we probably need the credentials for this admin so we can do a bunch of data dump and see where things are failing...  think at this point we need to walk through the code real time and see what is going on...

Avatar
Dave
Member
sp_UserOfflineSmall Offline
Nov 12, 2014 - 12:20 am

I had previously sent admin and user credentials to Andy. Forwarding that PM to you along with FTP info.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620