mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +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:
parent
82b2caf1ac
commit
ad7760061d
3 changed files with 7 additions and 4 deletions
|
@ -5536,6 +5536,7 @@ phutil_register_library_map(array(
|
|||
'PhabricatorCountdown' => array(
|
||||
'PhabricatorCountdownDAO',
|
||||
'PhabricatorPolicyInterface',
|
||||
'PhabricatorFlaggableInterface',
|
||||
'PhabricatorSpacesInterface',
|
||||
),
|
||||
'PhabricatorCountdownApplication' => 'PhabricatorApplication',
|
||||
|
|
|
@ -70,6 +70,7 @@ final class PhabricatorCountdownViewController
|
|||
$id = $countdown->getID();
|
||||
|
||||
$view = id(new PhabricatorActionListView())
|
||||
->setObject($countdown)
|
||||
->setUser($viewer);
|
||||
|
||||
$can_edit = PhabricatorPolicyFilter::hasCapability(
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<?php
|
||||
|
||||
final class PhabricatorCountdown
|
||||
extends PhabricatorCountdownDAO
|
||||
implements PhabricatorPolicyInterface,
|
||||
PhabricatorSpacesInterface {
|
||||
final class PhabricatorCountdown extends PhabricatorCountdownDAO
|
||||
implements
|
||||
PhabricatorPolicyInterface,
|
||||
PhabricatorFlaggableInterface,
|
||||
PhabricatorSpacesInterface {
|
||||
|
||||
protected $title;
|
||||
protected $authorPHID;
|
||||
|
|
Loading…
Reference in a new issue