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" error
Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Oct 4, 2014 - 3:02 am

I'm trying to problem solve yet another issue, this one preventing my users from posting. I need to make sure I have the User Group permissions set up in a way that works for Simple Press, so if someone could verify for me that would be great.

Specifically, I need to know if I can have someone in several User Groups at the same time that each have different permissions for a forum. I've read the pages here on this, and they don't get into how permissions work when a user is in multiple groups.

So for example:

Member A is in two User Groups: Members and News Team

Member B is in three User Groups: Members, News Team and Moderator

Member C is in two Groups: Members and Moderator

 

The News Team forum is private, and I do not want Member C (a member in the Moderator User Group) to see the forum, so the News Team forum has permissions set so that Members and Moderators have No Access, and the News Team User Group has Standard Access. <<The Moderator that is on the News Team is only in that forum as a regular member, not a mod.

 

Is this correct, or is this causing an issue?

 

Because now, if my members are not in the Moderator group, they are getting this error if they try to post in ANY of the forums, even in the forums that are open to guest posting:

 

Access denied – you do not have permission
Warning: Cannot modify header information – headers already sent by (output started at /******/wp-content/plugins/simple-press/sp-api/sp-api-primitives.php:59) in /******/wp-includes/pluggable.php on line 1173

Not sure if this is helpful or not, but people were posting fine five days ago, and since then I had installed four plugins and changed some css on the editor.

Two of the WordPress plugins I installed I uninstalled and deleted to test, and the issue was still there. The other two plugins are the Simple Press Post Ratings and the Simple Press Subscriptions. I deactivated both of those, but haven't deleted them.

All the editor css I've done so far is just change colors in the default SP editor css file, so it's basically the same.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 4, 2014 - 4:22 am

As far as permissions go, it's as simple as yes or no. Basically a user can be in as many usergroups as you want and forum permissions dictate which usergroup has access. So in answer to your question - I can't see a reason why this setup would cause issues. However it is always worth double checking to make sure permissions and usergroups are setup correctly, especially as you have been making a lot of changes recently.

I'd say if it was working before you added plugins and changed CSS, it's far more likely to be something one of the plugins has done. What did you install? I take it all the rest is up to date - SP, WP, SP plugins?

Has this been working OK since the editor changes?

Well the editor skin is looking good, just a tip - Had a look on your forum to see if you were getting any errors (which I couldn't find) and you might want to view it as a guest as the math question on guest posting puts a button up that doesn't match the rest ;)

Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2014 - 4:55 pm

Ike said
So in answer to your question - I can't see a reason why this setup would cause issues. However it is always worth double checking to make sure permissions and usergroups are setup correctly, especially as you have been making a lot of changes recently.

 I guess the question is, how could they be set up wrong, that would cause a conflict? With phpBB3 if you have someone in Membership and a forum is set where Membership can't see the forum, even if they're in a group that can see the forum, they can't see it, because they're also in a group that can't. Membership has to be in a "maybe can see the forum" category. So Simple Press is new to me, and if you could, please check my list above and make sure it's compatible?

 

Ike said
I'd say if it was working before you added plugins and changed CSS, it's far more likely to be something one of the plugins has done. What did you install? I take it all the rest is up to date - SP, WP, SP plugins?

 

These are the SP Plugins I have installed, but as I said, the only new ones before the issue I listed in the above post, everything was working fine (two stars =activated, one star=has been activated and deactivated, no stars=never been activated yet):

Achievements Integration

**BuddyPress

Captcha

Custom Profile Fields

**Editor TinyMCE Rich Text

**Fiile Uploader with Plupload

**Mentions

**Post Preview

*Post Ratings

**Post Thanks

**Ranks Information

*Template Tags and Widgets

 

Ike said
Has this been working OK since the editor changes?

 Not necessarily, and good thinking, so I went and copied over the default skin.min.css but the problem persists :(

 

So no idea what that error means? The file the error points to doesn't help us pinpoint what's going on here?

 

Edit: I just went and renamed the SP plugin folder, and it still happens.

Edit x2: Something I'm not sure I mentioned is another change that occurred right before this started happening is I turned off math question for Standard Permissions.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2014 - 5:37 pm

Might be a long shot but have you tried using one of the other editors?

Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2014 - 8:10 pm

Turns out this was a conflict of having two buttons chosen at the same time in Standard Permissions under Creating; "Can reply to existing topics in a forum" and "Can only reply to own topics".

I did not see "Can only reply to own topics", and again, coming from phpBB3 where "Standard" is the equivalent to SP's Full Access, and SP's Full Access is the equilvalent to phpBB3's special priveleges, I only wanted my members to be "Standard" but thought it weird that Standard Permissions didn't have the radio checked for "Can reply to existing topics in a forum" so I'd checked it.

It wasn't until hours of problem solving later that I finally saw that SP's Full Access says "Can bypass the math question" which is when I went back to see exactly what Standard was, and then saw the conflict.

So it's working now and that error is gone. Is there a way you guys can make it so only one or the other of the buttons can be selected but not both? Because I see a lot of other buttons that appear to be conflicts but work just fine, such as "Can edit own posts forever" and "Can edit own posts until there has been a reply" in Full Access.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 6, 2014 - 8:38 pm

good to hear!  thanks for the update...

re: button limits, many problems with your idea...  first, if we disable some based on others, then there is not way to change it...  at least not for good uic...  we have considered for some using a radio group - only one of a set can be chosen, but its a bit late for that as it would require a complete overhaul of the permission system as a permission currently can only have true/false setting...  a radio group would require some other allowed value.. any system we come up with thus far, has serious backwards compat issues... and it seems any time we make a significant change to permissions, it causes upgrade issues for folks for some reason...  that said, we still occasionally kick around ideas along these lines... so could happen, just not on roadmap currently...

Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Oct 10, 2014 - 1:44 pm

Well, it doesn't have to be that radical. Even just a small message to the side, or have them highlighted in pink like some of the other warnings could help prevent this from happening to others in the future. Thanks for your consideration, though!

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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625