Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1669366
20151219.proj.06.defaultpolicy.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
758 B
Referenced Files
None
Subscribers
None
20151219.proj.06.defaultpolicy.php
View Options
<?php
$app
=
PhabricatorApplication
::
getByClass
(
'PhabricatorProjectApplication'
);
$view_policy
=
$app
->
getPolicy
(
ProjectDefaultViewCapability
::
CAPABILITY
);
$edit_policy
=
$app
->
getPolicy
(
ProjectDefaultEditCapability
::
CAPABILITY
);
$join_policy
=
$app
->
getPolicy
(
ProjectDefaultJoinCapability
::
CAPABILITY
);
$table
=
new
PhabricatorProject
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
queryfx
(
$conn_w
,
'UPDATE %T SET viewPolicy = %s WHERE viewPolicy IS NULL'
,
$table
->
getTableName
(),
$view_policy
);
queryfx
(
$conn_w
,
'UPDATE %T SET editPolicy = %s WHERE editPolicy IS NULL'
,
$table
->
getTableName
(),
$edit_policy
);
queryfx
(
$conn_w
,
'UPDATE %T SET joinPolicy = %s WHERE joinPolicy IS NULL'
,
$table
->
getTableName
(),
$join_policy
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 17, 6:05 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
372786
Default Alt Text
20151219.proj.06.defaultpolicy.php (758 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment