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 CiviMember (Moderator: Deepak Srivastava) »
  • Limiting access to join date field?
Pages: [1]

Author Topic: Limiting access to join date field?  (Read 1430 times)

perka

  • Guest
Limiting access to join date field?
January 22, 2008, 02:52:13 pm
Is it possible to limit access to certain fields? I need administrators to be able to add and edit memberships but not be able to change a join date once it is set. Any ideas on how this can be achieved?


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Limiting access to join date field?
January 22, 2008, 06:09:01 pm
You'll need to modify the code to do this. If this is a "global rule" - e.g. nobody can change the Join Date for a membership once it's created - I think you can do this by adding the following lines to the buildQuickForm() function in CRM/Member/Form/Membership.php:

        if ($this->_action == CRM_Core_Action::UPDATE) {
            $this->freeze('join_date');
        }
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Limiting access to join date field?

This forum was archived on 2017-11-26.