role of the user

role of the user

ដោយ philippe dutour នៅ
ចំនួនតប៖ 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.

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ philippe dutour

Re: role of the user

ដោយ William Lu នៅ
រូបភាព Particularly helpful Moodlers

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

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ William Lu

Re: role of the user

ដោយ 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.

មធ្យមភាគនៃរង្វាយតម្លៃ: -