When you pack in a web service security record that includes web service access, a record on tenant X is inserted with a role from GardenWorld
Steps to reproduce:
1. Create a web service security record in Garden and give access to GardenAdmin and export it (attached zip).
2. Run the pack in with the zip file in a different client with no access to the GardenAdmin role -> the pack in is completed successfully.
3. Check the web service access record that was created, ad_role_id=102. And the record in the web service security window cannot be deleted or modified.
Attached you can find the patch that solves this ticket.
The patch from this ticket introduced a bug that breaks the import of records with attachments via 2pack.
The newly attached patch solves this bug.