/usr/share/horde/whups/lib/Block/Unassigned.php is in php-horde-whups 3.0.0~beta1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <?php
/**
* Display a summary of unassigned tickets.
*/
class Whups_Block_Unassigned extends Whups_Block_Tickets
{
/**
* Is this block enabled?
*
* @var boolean
*/
public $enabled = true;
/**
*/
public function __construct($app, $params = array())
{
parent::__construct($app, $params);
$this->_name = _("Unassigned Tickets");
}
/**
*/
protected function _content()
{
$queue_ids = array_keys(Whups::permissionsFilter($GLOBALS['whups_driver']->getQueues(), 'queue', Horde_Perms::READ));
$info = array('notowner' => true,
'nores' => true,
'queue' => $queue_ids);
$unassigned = $GLOBALS['whups_driver']->getTicketsByProperties($info);
if (!$unassigned) {
return '<p class="horde-content"><em>' . _("No tickets are unassigned!") . '</em></p>';
}
return $this->_table($unassigned);
}
}
|