MDL-51347 core_notes: check view notes capability by course context