Open danmarsden opened 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
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