Project

General

Profile

Actions

Bug #4118

closed

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

Added by Tim Pierce over 9 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
-
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
Actions

Also available in: Atom PDF