HomePhabricator

Check CAN_VIEW and CAN_EDIT at SearchAttachController

Description

Check CAN_VIEW and CAN_EDIT at SearchAttachController

Summary: Fixes T11193. Assume this is the correct place to check for permissions before attaching edges.

Test Plan: Create a task and set edit policy to Admins, log into test account. Try to Edit Subtasks, Merge Duplicates, Attach a Diff, or Attach a Mock, get a Policy Dialog explaing why.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T11193

Differential Revision: https://secure.phabricator.com/D16161

Details

Provenance
Chad Little <chad@phacility.com>Authored on Jun 22 2016, 2:00 PM
chadCommitted on Jun 22 2016, 2:00 PM
industryPushed on Jun 22 2016, 2:00 PM
Reviewer
epriestley
Differential Revision
D16161: Check CAN_VIEW and CAN_EDIT at SearchAttachController
Parents
rP921a5b494147: Push typehead browse result selector button down one <div>
Branches
Unknown
Tags
Unknown
Tasks
T11193: UI: The wrong options are greyed out.
Build Status
Buildable 12761
Build 16240: Run Core Tests