1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 12:30:56 +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(
'PhabricatorCountdownDAO',
'PhabricatorPolicyInterface',
'PhabricatorFlaggableInterface',
'PhabricatorSpacesInterface',
),
'PhabricatorCountdownApplication' => 'PhabricatorApplication',

View file

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

View file

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