From 3937d34ca2fd29e2ea0078560ca44194e92dbcb2 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 18 Jul 2015 12:40:23 -0700 Subject: [PATCH] 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 --- src/__phutil_library_map__.php | 1 + .../passphrase/controller/PassphraseCredentialViewController.php | 1 + src/applications/passphrase/storage/PassphraseCredential.php | 1 + 3 files changed, 3 insertions(+) diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 1e4a575898..67bb02d749 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -5060,6 +5060,7 @@ phutil_register_library_map(array( 'PassphraseDAO', 'PhabricatorApplicationTransactionInterface', 'PhabricatorPolicyInterface', + 'PhabricatorFlaggableInterface', 'PhabricatorDestructibleInterface', 'PhabricatorSpacesInterface', ), diff --git a/src/applications/passphrase/controller/PassphraseCredentialViewController.php b/src/applications/passphrase/controller/PassphraseCredentialViewController.php index f9cc193dbf..ede3bab78f 100644 --- a/src/applications/passphrase/controller/PassphraseCredentialViewController.php +++ b/src/applications/passphrase/controller/PassphraseCredentialViewController.php @@ -96,6 +96,7 @@ final class PassphraseCredentialViewController extends PassphraseController { $actions = id(new PhabricatorActionListView()) ->setObjectURI('/K'.$id) + ->setObject($credential) ->setUser($viewer); $can_edit = PhabricatorPolicyFilter::hasCapability( diff --git a/src/applications/passphrase/storage/PassphraseCredential.php b/src/applications/passphrase/storage/PassphraseCredential.php index 90eb32725d..3ad1351061 100644 --- a/src/applications/passphrase/storage/PassphraseCredential.php +++ b/src/applications/passphrase/storage/PassphraseCredential.php @@ -4,6 +4,7 @@ final class PassphraseCredential extends PassphraseDAO implements PhabricatorApplicationTransactionInterface, PhabricatorPolicyInterface, + PhabricatorFlaggableInterface, PhabricatorDestructibleInterface, PhabricatorSpacesInterface {