Differential D8591 Diff 20374 src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | if ($this->isCreate()) { | ||||
| ->setViewer($user) | ->setViewer($user) | ||||
| ->withIDs(array($this->id)) | ->withIDs(array($this->id)) | ||||
| ->requireCapabilities( | ->requireCapabilities( | ||||
| array( | array( | ||||
| PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
| PhabricatorPolicyCapability::CAN_EDIT, | PhabricatorPolicyCapability::CAN_EDIT, | ||||
| )) | )) | ||||
| ->executeOne(); | ->executeOne(); | ||||
| if (!$status) { | |||||
| return new Aphront404Response(); | |||||
| } | |||||
| $end_time->setValue($status->getDateTo()); | $end_time->setValue($status->getDateTo()); | ||||
| $start_time->setValue($status->getDateFrom()); | $start_time->setValue($status->getDateFrom()); | ||||
| $submit_label = pht('Update'); | $submit_label = pht('Update'); | ||||
| $filter = 'event/edit/'.$status->getID().'/'; | $filter = 'event/edit/'.$status->getID().'/'; | ||||
| $page_title = pht('Update Event'); | $page_title = pht('Update Event'); | ||||
| $redirect = 'updated'; | $redirect = 'updated'; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines | |||||