Homec4science

Add `viewPolicy` and `attachedToObjectPHID` to PhabricatorFile

Authored by epriestley <git@epriestley.com> on Oct 1 2013, 17:45.

Description

Add viewPolicy and attachedToObjectPHID to PhabricatorFile

Summary:
Ref T603. Principally, I want to implement the rule "when you upload a file to an object, users must be able to see the object in order to see the file", since I think this is strongly in line with user expectation. For example, if you attach a file to a Conpherence, it should only be visible to members of that thread.

This adds storage for policies, but doesn't do anything interesting with it yet.

Test Plan: Ran bin/storage upgrade.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

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

Details

Committed
epriestley <git@epriestley.com>Oct 1 2013, 17:45
Pushed
aubortJan 31 2017, 17:16
Parents
rPH472be5e26e6a: Provide an attached-to-visible-object policy exception for files
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH98bf001a58a3: Add `viewPolicy` and `attachedToObjectPHID` to PhabricatorFile (authored by epriestley <git@epriestley.com>).Oct 1 2013, 17:45