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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Trying to expand CiviCRM access to Wordpress "author" role
Pages: [1]

Author Topic: Trying to expand CiviCRM access to Wordpress "author" role  (Read 553 times)

eflage

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.1.68-cll
  • PHP version: 5.3.6
Trying to expand CiviCRM access to Wordpress "author" role
March 26, 2013, 11:21:19 am
I am  trying to expand CiviCRM access to Wordpress users with the "Author" role. I have edited the following in CRM\ Core\PermissionsWordPress.php beginning on line 97 and added "|| current_user_can('author')":

if (current_user_can('super admin') ||
      current_user_can('administrator') ||
      current_user_can('editor') ||
      current_user_can('author')

But it doesn't seem to have any effect.  Any other tips on other places that might need to be edited?

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: Trying to expand CiviCRM access to Wordpress "author" role
March 26, 2013, 11:54:15 am

also check the main civicrm.php file in: wp-content/plugins/civicrm/civicrm.php

however, u might want to try using v4.3 (in a late beta right now) since that version has integrated permissioning with WP and hence is a lot more flexible

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

eflage

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Wordpress 3.5.1
  • MySQL version: 5.1.68-cll
  • PHP version: 5.3.6
Re: Trying to expand CiviCRM access to Wordpress "author" role
March 26, 2013, 12:02:22 pm
Thanks for the quick reply.  I will look at civicrm.php too.

I currently hope to get 4.3 installed on my dev server and test out over the next few weeks and if all is good I will probably update.

I have an event registration open so I can't really update until that is over.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Trying to expand CiviCRM access to Wordpress "author" role

This forum was archived on 2017-11-26.