role of the user

role of the user

by philippe dutour -
Number of replies: 3

Hi
Can we retrieve information on the role of the user who opens a database activity for script, which would allow to display or hide part of the document depending on the role 'student or teacher ...) thank you.

Average of ratings: -
In reply to philippe dutour

Re: role of the user

by William Lu -
Picture of Particularly helpful Moodlers

You can try the Dataform (plugin),  created by Itamar Tzadok.

In reply to William Lu

Re: role of the user

by philippe dutour -


Hello and thank you for this answer.

I tried to install this plugin but nothing appears to put place a dataform activity. I read in a forum  to have the PHP version 5.6 maximum otherwise there is a bug that blocks the activity. Is this the correct explanation, I'm in PHP 7 with moodle 3.3.2.