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) »
  • permissions aspects of parent editing child data in drupal module
Pages: [1]

Author Topic: permissions aspects of parent editing child data in drupal module  (Read 1008 times)

tgramil

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
permissions aspects of parent editing child data in drupal module
November 19, 2009, 03:21:35 pm
I have to set up a multi-page form that involves filling out pdf's with contact data and submitting
the pdf's as files.   My plan is to store the info in a child's contact record (since it is sorted by
their year in high school), but the PDF's must be submitted by the parents of the child.

I am expecting to write a drupal module to do this, since there exist ways to approach multi page forms,
and expect to use the civicrm api to load the records into a civicrm custom data group.

My question has to do with permissions.  I have looked a bit at the  "schools" code written by Lobo, which
involves parents accessing child data. I am just a beginner at all of this though, so my question is hard for
me to figure out by inspecting the 'schools' code.

The question is:  Once the ID of the child is determined in the drupal module, are there restrictions on being
able to write data  into the childs custom data group?    I'm hoping that the 'edit other user protection' is
at a higher level than the civicrm api and hooks, so that armed with the ID I can just load info into the record.
Or is there more that needs to be done to be able to access those records?

Thanks in advance for the help.....

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: permissions aspects of parent editing child data in drupal module
November 19, 2009, 08:15:30 pm

most/all of the permissioning is at the url/api level. you can read/write directly to the db once u have the right ids

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

tgramil

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: permissions aspects of parent editing child data in drupal module
November 20, 2009, 05:50:19 am
Terrific, thanks!
  I'm still at the 'let me figure out if this is possible' stage, and this is a big help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • permissions aspects of parent editing child data in drupal module

This forum was archived on 2017-11-26.