clarin-eric / component-registry-rest

Component Registry back end
GNU General Public License v3.0
2 stars 1 forks source link

Team members cannot edit a published item with development status. #79

Closed twagoo closed 8 months ago

twagoo commented 9 months ago

Team members cannot edit a published item with development status, but ideally this should be possible until published as production. Check if this is an issue in the back end, if not document as front end issue.

twagoo commented 9 months ago

The API seems to allow this, but the front end does not enable the edit button for any published item that is not associated with the user itself. See BrowserMenuGroup.jsx:

      var isEditable =
        (this.props.userId == null || this.props.userId === singleItem.userId || this.props.space == Constants.SPACE_TEAM)
        && singleItem.status.toLowerCase() == Constants.STATUS_DEVELOPMENT.toLowerCase()

Leaving this open until resolved in front end as it may require extensions in the API.

twagoo commented 9 months ago

This has already been documented as https://github.com/clarin-eric/component-registry-front-end/issues/141