Annoto / moodle-filter_annoto

Annoto Moodle Filter plugin
GNU General Public License v3.0
0 stars 0 forks source link

incorrect handling of user permission checking. #9

Open danmarsden opened 5 years ago

danmarsden commented 5 years ago

Your is_moderator function is not the way to manage admin/moderator access. Your plugin should define it's own capabilities and assign these to the site admin role.

more information on capabilities is here: https://docs.moodle.org/dev/Access_API#How_to_define_new_capabilities_in_plugins