mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-05 21:26:14 +01:00
22 lines
522 B
PHP
22 lines
522 B
PHP
|
<?php
|
||
|
|
||
|
$table = new HarbormasterBuildPlan();
|
||
|
$conn_w = $table->establishConnection('w');
|
||
|
|
||
|
$view_policy = PhabricatorPolicies::getMostOpenPolicy();
|
||
|
queryfx(
|
||
|
$conn_w,
|
||
|
'UPDATE %T SET viewPolicy = %s WHERE viewPolicy = %s',
|
||
|
$table->getTableName(),
|
||
|
$view_policy,
|
||
|
'');
|
||
|
|
||
|
$edit_policy = id(new PhabricatorHarbormasterApplication())
|
||
|
->getPolicy(HarbormasterCreatePlansCapability::CAPABILITY);
|
||
|
queryfx(
|
||
|
$conn_w,
|
||
|
'UPDATE %T SET editPolicy = %s WHERE editPolicy = %s',
|
||
|
$table->getTableName(),
|
||
|
$edit_policy,
|
||
|
'');
|