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) »
  • Creating a list of assigned students
Pages: [1]

Author Topic: Creating a list of assigned students  (Read 798 times)

ChrisChinchilla

  • I post occasionally
  • **
  • Posts: 104
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 6 & 7
Creating a list of assigned students
July 12, 2013, 12:04:34 am
Hey everyone,

I have a client with a particular requirement and I'm struggling to fathom how to implement it in CiviCRM/Drupal, your thoughts and ideas are welcome…

Teachers are part of a school, as are students.
Teachers should be able to see a list of students in their school.
Teachers shouldn't be able to see any other students from any other schools.

This is broken down into bare basic requirements, so as not to influence any potential solutions you may have!
Melbourne CiviCRM meetup group - http://www.meetup.com/MelbourneCiviCRM/

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Creating a list of assigned students
July 12, 2013, 12:15:16 am
Hi,

I'd skip creating groups and permissions with acl for each class and go the custom way: write an extension with an acl hook to limit what contacts can be seen (using the relationship).

Not that complicated to write, not that fun to test (masquerade is your friend)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

ChrisChinchilla

  • I post occasionally
  • **
  • Posts: 104
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 6 & 7
Re: Creating a list of assigned students
July 15, 2013, 12:26:17 am
Any other guidance on that? Found the hook docs, but not really sure what to do next…
Melbourne CiviCRM meetup group - http://www.meetup.com/MelbourneCiviCRM/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Creating a list of assigned students

This forum was archived on 2017-11-26.