Project

General

Profile

Actions

Bug #16118

closed

Offers editing actions on read-only collections

Added by Peter Amstutz almost 5 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Target version:
Story points:
-
Release relationship:
Auto

Description

Workbench2 does not check if a user can edit a collection when rendering the collection view (
workbench2/src/views/collection-panel). As a result, if the user only has read-only access to the collection, they will experience API errors if they try to edit it. The collection view should check whether the collection is writable and have both editable and read-only views. You can check if the collection can be edited by examining the writable_by field in collection record, this is a list of uuids, if the collection is writable, the current user uuid will appear in that list, if not, the collection is read-only.


Subtasks 1 (0 open1 closed)

Task #16183: Review 16118-readonly-collections-lucasResolvedPeter Amstutz02/28/2020Actions

Related issues 3 (0 open3 closed)

Related to Arvados - Feature #16437: Indicate when projects are not editable by userResolvedDaniel Kutyła06/03/2020Actions
Related to Arvados - Bug #16472: Shows error snackbar even when the code will handle the error.ResolvedLucas Di Pentima06/23/2020Actions
Blocks Arvados - Idea #13494: Browse previous versions of a collectionResolvedLucas Di Pentima02/19/2020Actions
Actions

Also available in: Atom PDF