Bug #4118

[API] Link model validation allows only Users and Groups to get can_read, can_write, can_manage

Added by Tim Pierce over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
Start date:
10/06/2014
Due date:
% Done:

0%

Estimated time:
Story points:
0.5

Description

The permission link types can_read, can_write and can_manage are only meaningful when applied to Users and Groups. The Link model should include a validation that enforces:
  • If link_class is permission
  • and name is in ['can_read', 'can_write', 'can_manage']
    • then tail_kind must be either arvados#user or arvados#group

History

#1 Updated by Brett Smith over 4 years ago

  • Target version changed from Bug Triage to Arvados Future Sprints

Also available in: Atom PDF