fix case permission and comment permission for archived case