Page 1 of 1

Give all custom capabilities to admin

PostPosted: September 7th, 2011, 1:30 am
by dnesscarkey
I have different users with different capabilities.

And have assigned those capabilities to pages. So that only the user can see having the capability.

But now, i want my admin user to see it without restriction.

Is it possible? How can i do it?

I tried searching the forum but couldn't get the solution.

Re: Give all custom capabilities to admin

PostPosted: September 7th, 2011, 4:01 am
by Cristián Lávaque
The admin should not be affected by the s2Member restrictions. This was not happening with ccaps until recently. What s2Member version do you have? Please update to the latest.

Re: Give all custom capabilities to admin

PostPosted: September 7th, 2011, 4:22 am
by dnesscarkey
I am using
s2Member Pro # Version: 110731

Re: Give all custom capabilities to admin

PostPosted: September 7th, 2011, 4:23 am
by dnesscarkey
I mean to say the user having Administrator role is unable to view the page.

Re: Give all custom capabilities to admin

PostPosted: September 8th, 2011, 12:36 am
by Cristián Lávaque
Got it. Could you please update to the latest version?

From the v110815 changelog:

(s2Member) Bug fix / Capabilities. When/if you require Custom Capabilities in order to view certain content sections on your site, s2Member was behaving properly in all cases, except for one specific scenario. When an Administrator of the site ( on a normal single-site installation of WordPress ), was attempting to test-view content protected with Custom Capabilities ( this scenario was causing a problem ). What was happening, is that s2Member was seeing that an Adminstrator did not have certain Custom Capabilities defined explicity in their account, and access was being denied ( that's actually, NOT right ). This was in conflict with the way that s2Member handles all other content protection routines with respect to Administrators. Administrators should automatically have access to all protected content, even if Custom Capabilities are not explicity defined in their account. After all, they are Administrators. In short, this release makes it possible for Administrators of a single-site WordPress installation, to have full access to all content; even when/if Custom Capabilities are required. This should help to prevent confusion for site owners just beginning to understand s2Member's functionality with respect to Custom Capabilities.

Re: Give all custom capabilities to admin

PostPosted: September 8th, 2011, 3:21 am
by dnesscarkey
Thanks :)

Re: Give all custom capabilities to admin

PostPosted: September 9th, 2011, 12:44 am
by Cristián Lávaque
;)