Add change whenever changing public flag.
@@ -1496,13 +1496,10 @@ def _set_resource_sharing_status(request, user, resource, flag_to_set, flag_valu
resource.raccess.discoverable = is_public
resource.raccess.save()
+
# set isPublic metadata AVU accordingly
- if resource.resource_federation_path:
- istorage = IrodsStorage('federated')
- res_coll = '{}/{}'.format(resource.resource_federation_path, resource.short_id)
- else:
- istorage = IrodsStorage()
- res_coll = resource.short_id
+ res_coll = resource.root_path
+ istorage = resource.get_irods_storage()
istorage.setAVU(res_coll, "isPublic", str(resource.raccess.public))
# run script to update hyrax input files when a private netCDF resource is made public
