MDL-45678 assignsubmission_comments: Improve performance for permissions checking

Use is_enrolled() instead of get_suspended_userids()