CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Confused about where to set access control
Pages: [1]

Author Topic: Confused about where to set access control  (Read 2110 times)

siriusly

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Wordpress 3.5.2
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Confused about where to set access control
July 29, 2013, 09:20:16 pm
I am new to CiviCRM...

With the goal of limiting event registration to members, and other types of content to specific member levels, I've configured the Civimember Role Sync plugin, and the Members plugin (to add roles that correspond to Civi member levels).  The new roles I've created now appear in the CiviCRM Wordpress Access Control.

Here's where I am confused: Both the Members plugin _and_ the Wordpress Access Control in the CiviCRM have interfaces to select what parts of CiviCRM are accessible to selected roles.  Where should I be making the access control selections -- with the plugin, in CiviCRM Wordpress Access Control, or both? 

Also, is the Members plugin the correct one to be using to create WordPress roles?  (I need to restrict some types of content beyond the CiviCRM forms as well).


krypto

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 5
  • IT guy for @bhahumanists. Running Civi on WP.
    • British Humanist Association
  • CiviCRM version: 4.5.8
  • CMS version: WordPress 4.x
  • MySQL version: 5.5.x
  • PHP version: 5.5.x
Re: Confused about where to set access control
July 30, 2013, 03:06:43 am
The plugin makes sure that members are allocated a particular role. You then use the Access Control to specify what these roles have access to.

I don't think the Role Sync plugin controls access to areas of CiviCRM - are you using Capability Manager (http://presspermit.com/capability-manager) by any chance? That does allow you to select permissions in the same way as Civi's Access Control. Afaik you can use either, but Civi's Access Control is much cleaner and easier to use, imho.

If you want to control access to pages in WordPress, you need another plugin to secure pages based on people's roles. I use Press Permit for this (http://presspermit.com/), though it's kinda overkill.

siriusly

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Wordpress 3.5.2
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Confused about where to set access control
July 30, 2013, 08:53:16 am
Thanks for the reply!  I understand (I think) that Role Sync just maps WP roles to CiviCRM roles.  Based on another CiviCRM forum suggestion, I'm using the Members plugin (http://wordpress.org/plugins/members/), rather than Capability Manager or another "permissions" plugin, to create the supplemental WP roles and to control access to WP pages and selected content (it does both). 

So... without being too daft here, it sounds like I should disable the Members plugin function to control access to CiviCRM areas, and do that in Civi's WP Access Control, correct ?. 

If I do not disable that plugin function, do you know which set of permissions would be in force (CiviCRM's or the plugin's)?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Confused about where to set access control
July 30, 2013, 10:17:07 am

might be easier and faster for you to install the plugins and experiment with what works

civi makes calls to wordpress to check if a user has a specific permission, so u might be able to use the members plugin

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

siriusly

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Wordpress 3.5.2
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Confused about where to set access control
July 30, 2013, 12:12:14 pm
I had already been spending many hours experimenting, and can now finally report that the Members plugin settings appear to inherit those set in the CiviCRM Wordpress Acccess Control settings and vice versa.  Whichever set is updated most recently rules.  (To confirm this, I disabled all permissions for the WP user role "Anonymous" using the Members plugin settings, then enabled specific permissions using the CiviCRM WP Access Control panel, then made the changes in the opposite order.  It works in both directions.) Hallelujah!
« Last Edit: July 30, 2013, 12:17:31 pm by siriusly »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Confused about where to set access control

This forum was archived on 2017-11-26.