MDL-44140 badges: Prevent non-owners to change visibility of issued badges

Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
MDL-40907 events: view list of resources in course
MDL-40907 events: do not log or trigger event about module create/edit action twice