Hi to everyone,
I commented what is the "problem" I have in my Moodle platform in version 3.1.6.
I have been investigating if there is a possibility that a user with a
"student" role does not have permission to edit the name and surname in
the edition of their profile. I have looked at the
restrictions at the role level and there is no such thing as the
restriction to prohibit editing the profile itself.
So
my question is, how can I do, at the code level, prevent a user with a
student role from modifying neither his name and lastname, and that
those two boxes in the profile appear with the readonly property?
Thank you very much in advance.