Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98698864
PhabricatorSettingsEditController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jan 15, 17:56
Size
870 B
Mime Type
text/x-php
Expires
Fri, Jan 17, 17:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23628133
Attached To
rPH Phabricator
PhabricatorSettingsEditController.php
View Options
<?php
final
class
PhabricatorSettingsEditController
extends
PhabricatorController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$engine
=
id
(
new
PhabricatorSettingsEditEngine
())
->
setController
(
$this
);
switch
(
$request
->
getURIData
(
'type'
))
{
case
'user'
:
$user
=
id
(
new
PhabricatorPeopleQuery
())
->
setViewer
(
$viewer
)
->
withUsernames
(
array
(
$request
->
getURIData
(
'username'
)))
->
executeOne
();
$preferences
=
$user
->
loadPreferences
();
PhabricatorPolicyFilter
::
requireCapability
(
$viewer
,
$preferences
,
PhabricatorPolicyCapability
::
CAN_EDIT
);
$engine
->
setTargetObject
(
$preferences
);
break
;
default
:
return
new
Aphront404Response
();
}
return
$engine
->
buildResponse
();
}
}
Event Timeline
Log In to Comment