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 Profiles (Moderator: Dave Greenberg) »
  • Customise profile 'not enough permissions' error message?
Pages: [1]

Author Topic: Customise profile 'not enough permissions' error message?  (Read 542 times)

carlitos

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
    • International Council for Traditional Music
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Customise profile 'not enough permissions' error message?
April 17, 2014, 01:53:23 am
Hello all!

I'd need to customise the error message you get when trying to access a restricted profile. I run Drupal 6, latest CiviCRM, and enforce access permissions by giving only a certain Drupal role the permission 'access all profiles' -- only recently I realised the power of CiviCRM ACLs, and will look into that at a later time.

The default message is, unfortunately, too vague for my needs:

Quote
Sorry but we are not able to provide this at the moment.

The requested Profile (gid=1) is disabled OR it is not configured to be used for 'Profile' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance.

I'd like to change it to something like 'You need to be a member in good standing before you can use the Membership Directory'. I grepped the source code, and the only matching string was at /drupal/civicrm.module. I tried modifying the text there, but nothing happened.

Would anyone know where this message lives?

Thanks a lot!

carlitos

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
    • International Council for Traditional Music
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Customise profile 'not enough permissions' error message?
September 30, 2014, 07:17:16 am
*bump*

Anyone?

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: Customise profile 'not enough permissions' error message?
September 30, 2014, 08:24:51 am
CRM/Core/BAO/UFGroup.php

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

carlitos

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
    • International Council for Traditional Music
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Customise profile 'not enough permissions' error message?
September 30, 2014, 09:25:02 am
Thank you, Sir! I'll get crackin'.

carlitos

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
    • International Council for Traditional Music
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Customise profile 'not enough permissions' error message?
September 30, 2014, 12:27:12 pm
I just wanted to say that it worked like a charm. Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Customise profile 'not enough permissions' error message?

This forum was archived on 2017-11-26.