1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Make Passphrase Credentials Flaggable

Summary: Ref T8888, Makes Passphrase credentials flaggable.

Test Plan: Flag a credential

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8888

Differential Revision: https://secure.phabricator.com/D13655
This commit is contained in:
Chad Little 2015-07-18 12:40:23 -07:00
parent ad7760061d
commit 3937d34ca2
3 changed files with 3 additions and 0 deletions

View file

@ -5060,6 +5060,7 @@ phutil_register_library_map(array(
'PassphraseDAO',
'PhabricatorApplicationTransactionInterface',
'PhabricatorPolicyInterface',
'PhabricatorFlaggableInterface',
'PhabricatorDestructibleInterface',
'PhabricatorSpacesInterface',
),

View file

@ -96,6 +96,7 @@ final class PassphraseCredentialViewController extends PassphraseController {
$actions = id(new PhabricatorActionListView())
->setObjectURI('/K'.$id)
->setObject($credential)
->setUser($viewer);
$can_edit = PhabricatorPolicyFilter::hasCapability(

View file

@ -4,6 +4,7 @@ final class PassphraseCredential extends PassphraseDAO
implements
PhabricatorApplicationTransactionInterface,
PhabricatorPolicyInterface,
PhabricatorFlaggableInterface,
PhabricatorDestructibleInterface,
PhabricatorSpacesInterface {