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 »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Personal Campaign Page Creation
Pages: [1]

Author Topic: Personal Campaign Page Creation  (Read 1337 times)

luismiguel2001us

  • Guest
Personal Campaign Page Creation
August 11, 2009, 07:39:39 pm
Hi folks,

I am looking for a way to restrict the creation of personal campaign pages only to a Civi administrator. Is there a way that civi can be configured so that individuals are not able to create or manage personal campaign pages, but rather that an authenticated user with administrative rights in civi can create and manage personal campaign pages on the behalf of others? Thanks for your help with this.

Luis

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: Personal Campaign Page Creation
August 11, 2009, 10:21:16 pm
Hi,
Quote
I am looking for a way to restrict the creation of personal campaign pages only to a Civi administrator.
If you want to restrict the user.

Code: [Select]
--- CRM/Contribute/xml/Menu/Contribute.xml (revision 23161)
+++ CRM/Contribute/xml/Menu/Contribute.xml (working copy)
@@ -136,7 +136,7 @@
      <path>civicrm/contribute/campaign</path>
      <title>Setup a Personal Campaign Page - Account Information</title>
      <page_callback>CRM_Contribute_Controller_PCP</page_callback>
-     <access_arguments>make online contributions</access_arguments>
+     <access_arguments>administer CiviCRM,make online contributions</access_arguments>
      <is_public>true</is_public>
      <weight>0</weight>
   </item>

then rebuild your menu table by using http://domain/civicrm/menu/rebuild?reset=1
Now those who have 'administer CiviCRM' AND 'make online contributions' Permission can access the this page

Hth
Sunil
The community around a product more important than the product itself?

luismiguel2001us

  • Guest
Re: Personal Campaign Page Creation
August 13, 2009, 07:57:43 pm
Hi Sunil,

Thank you for your answer. Here is a slightly different scenario. What if I want to restrict the creation of a personal campaign page by contribution page. So for one contribution page I want to allow people to create their own personal campaign pages, while for another contribution page I want the Civi administrator to create the personal campaign pages for the various people. Is this possible in Civi? Thanks for your help.

Luismiguel

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: Personal Campaign Page Creation
August 13, 2009, 08:45:13 pm


Luis:

at this stage, this is not possible

You'll need to change the code and store the PCP permissions at the page level and then check it during PCP creation/editing time for proper permissions

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Personal Campaign Page Creation

This forum was archived on 2017-11-26.