fixes #6657 permission file on case and edit links better