FMCorz / moodle-block_xp

A gamification plugin for Moodle allowing students to gain experience points and level up.
https://levelup.plus/?ref=github
150 stars 41 forks source link

Hide register logs #105

Closed goggo24 closed 3 years ago

goggo24 commented 4 years ago

Is there a way to hide the register logs for teachers? In our instance they are not allowed to see logfiles from students. I haven't found any admin-setting or capability in this direction. Have I missed something? If not, would you accept a pull request, where the display can be controlled via a capability?

FMCorz commented 4 years ago

Hi @goggo24,

You are right, users with the capability to manage Level up! can see all of its pages. We would most definitely accept pull requests for a new capability. We imagine that "block/xp:viewlogs" could be a good fit, the latter should inherit from the manage capability, and be checked for in the log controllers.

Thank you! Fred

FMCorz commented 3 years ago

This has been implemented and will be included in the next release. Thank you!