Project

General

Profile

Actions

Story #2873

closed

Permission links are owned by root; ability to lookup/modify is determined by current user permission on "head" object

Added by Tom Clegg over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Tim Pierce
Category:
-
Target version:
Start date:
06/16/2014
Due date:
% Done:

100%

Estimated time:
(Total: 25.00 h)
Story points:
2.0

Description

Todo
  • Set owner_uuid to system_user_uuid on all permission links. This prevents users from having permission to view/alter permission links by virtue of having created them.
  • Add get_permissions action to API server's ApplicationController. It accepts a single uuid and responds with a list of all permission links whose head_uuid is equal to the specified uuid.
    • respond 404 if the object with the specified uuid does not exist or is not readable by the current user (using the same before_filter stuff as the "show" action should take care of this)
    • respond 403 if the current user does not have manage permission on the specified uuid or the referenced object's owner_uuid

Subtasks 3 (0 open3 closed)

Task #3075: Review 2873-permission-links-ownershipResolvedTom Clegg06/16/2014

Actions
Task #2921: Link validators use head_uuid to determine permission to lookup or modifyResolvedTim Pierce06/16/2014

Actions
Task #2920: Link.create and Link.update sets link ownership to root when link_class is 'permission'ResolvedTim Pierce06/16/2014

Actions
Actions

Also available in: Atom PDF