Fix checking access rights. Hide edit course items buttons for unauthorized access.