Fix bug in showing edit link for admins