eluv-io / contracts

Eluvio Content Management Smart Contracts
MIT License
10 stars 0 forks source link

In V3, deleting an object requires ownership of the object and editor rights to the library #105

Closed elv-marc closed 1 year ago

elv-marc commented 1 year ago

One change made in v3 is that the delete method for a content object is not called on the contract of that object, but instead on the library. That call requires editor rights on the library. Currently there is not UI to grant editor right to a user or a group, so the result is that only the library owner as such rights.

Deleting an object requires ownership of the object and editor rights to the library, so only objects which are owned by the library owner can be deleted without advance intervention.

The simplest work-around for an object owner to delete an object is to transfer ownership to library owner and ask library owner to then make the object deletion.

Alternatively, editor rights to the library can be manually set using direct contract calls.

elv-serban commented 1 year ago

Confirmed this behavior.

Work around in the fabric browser:

After setting access, delete works.

elv-serban commented 1 year ago

This is solved by adding the Manage capability in the Fabric Browser that will set object-level Edit on the library object.