This topic is locked
[SOLVED]

 Login permissions for student, teacher and headmaster.

5/12/2010 06:15:53
PHPRunner General questions
M
mmponline author

I need to set login previledges for students and teachers with specific needs:

  1. When the student login, he must only see his own data (that I can setup via permissions - no problem)
  2. Above student belongs to a teacher. When the teacher login, he must be able to see the data of all the students in HIS class but not students from other classes.
  3. When the headmaster logs in, he must see all students (admin) of all classes. That I can do by making him the admin user group.
    I'm thus not sure how to create the group /permissions for specific students / classes. I would prefer that above must be done through dynamic permissions so that admin can handle these permissions.
    Please help.

A
ann 5/12/2010

Stephan,
to create such security scheme I advise you to create a ClassID field in the UsersTable. Thereafter you can use it to set up permissions on the Advanced Security Settings dialog. Choose ClassID as an OwnerID field for TableName. In such a way you've assigned permissions for teacher, i.e. he has equal permissions for all students in his ClassID.

Create a custom view of the TableName and choose username as an OwnerID field, i.e. none except the student has an access to the TableName.

M
mmponline author 5/17/2010

This works fine, thanks Ann
Is it possible to do something similar witgh dynamic permissions, as it will make setting of groups,e tc. much easier. Otherwise it will have to be customised via PHP Runner everytime.

A
ann 5/18/2010

Stephan,
I'm not sure that I fully understand you. Could you give me more detailed description?

M
mmponline author 5/18/2010

The security Tab has a permissions button and then the option of Static or Dynamic permissions, that creates tables to set up groups, etc.

I would like to use dynamic permissions if possible to achieve the same results of teachers access to all students.
Is this possible and how?

A
ann 5/18/2010

Stephan,
make the same steps as for static permissions. The only difference is that instead of using User Group Permission dialog you should set up permissions in the admin area of the builded project.