1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00

Make Countdown Flaggable

Summary: Ref T8888. Cool man, like, more flags.

Test Plan: Flag it, Tag it, and Bag it.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8888

Differential Revision: https://secure.phabricator.com/D13653
This commit is contained in:
Chad Little 2015-07-18 12:19:32 -07:00
parent 82b2caf1ac
commit ad7760061d
3 changed files with 7 additions and 4 deletions

View file

@ -5536,6 +5536,7 @@ phutil_register_library_map(array(
'PhabricatorCountdown' => array( 'PhabricatorCountdown' => array(
'PhabricatorCountdownDAO', 'PhabricatorCountdownDAO',
'PhabricatorPolicyInterface', 'PhabricatorPolicyInterface',
'PhabricatorFlaggableInterface',
'PhabricatorSpacesInterface', 'PhabricatorSpacesInterface',
), ),
'PhabricatorCountdownApplication' => 'PhabricatorApplication', 'PhabricatorCountdownApplication' => 'PhabricatorApplication',

View file

@ -70,6 +70,7 @@ final class PhabricatorCountdownViewController
$id = $countdown->getID(); $id = $countdown->getID();
$view = id(new PhabricatorActionListView()) $view = id(new PhabricatorActionListView())
->setObject($countdown)
->setUser($viewer); ->setUser($viewer);
$can_edit = PhabricatorPolicyFilter::hasCapability( $can_edit = PhabricatorPolicyFilter::hasCapability(

View file

@ -1,9 +1,10 @@
<?php <?php
final class PhabricatorCountdown final class PhabricatorCountdown extends PhabricatorCountdownDAO
extends PhabricatorCountdownDAO implements
implements PhabricatorPolicyInterface, PhabricatorPolicyInterface,
PhabricatorSpacesInterface { PhabricatorFlaggableInterface,
PhabricatorSpacesInterface {
protected $title; protected $title;
protected $authorPHID; protected $authorPHID;