MDL-49826 grade: hide singleview links when no permissions