Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/storage/ConpherenceThread.php
| Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | if ($this->getIsRoom()) { | ||||
| return pht('Participants in a thread can always view and edit it.'); | return pht('Participants in a thread can always view and edit it.'); | ||||
| } | } | ||||
| } | } | ||||
| public static function loadPolicyObjects( | public static function loadPolicyObjects( | ||||
| PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
| array $conpherences) { | array $conpherences) { | ||||
| assert_instances_of($conpherences, 'ConpherenceThread'); | assert_instances_of($conpherences, __CLASS__); | ||||
| $grouped = mgroup($conpherences, 'getIsRoom'); | $grouped = mgroup($conpherences, 'getIsRoom'); | ||||
| $rooms = idx($grouped, 1, array()); | $rooms = idx($grouped, 1, array()); | ||||
| $policies = array(); | $policies = array(); | ||||
| foreach ($rooms as $room) { | foreach ($rooms as $room) { | ||||
| $policies[] = $room->getViewPolicy(); | $policies[] = $room->getViewPolicy(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||