fix permissions rules for archived case and archived manual tasks