Database

role of the user

 
Picture of philippe dutour
role of the user
 

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: -
Picture of William Lu
Re: role of the user
Particularly helpful Moodlers

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

 
Average of ratings: -
Picture of philippe dutour
Re: role of the user
 


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.

 
Average of ratings: -
Picture of William Lu
Re: role of the user
Particularly helpful Moodlers

Hi Philippe, I am sure you can get a help from the Dataform (plugin) forum.

 
Average of ratings: -