mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 13:35:12 +00:00
22 lines
380 B
PHP
22 lines
380 B
PHP
<?php
|
|
|
|
namespace Code\Update;
|
|
|
|
use Code\Lib\PConfig;
|
|
|
|
class _1228
|
|
{
|
|
|
|
public function run()
|
|
{
|
|
|
|
$r = q("select channel_id from channel where true");
|
|
if ($r) {
|
|
foreach ($r as $rv) {
|
|
PConfig::Set($rv['channel_id'], 'perm_limits', 'moderated', (string)PERMS_SPECIFIC);
|
|
}
|
|
}
|
|
|
|
return UPDATE_SUCCESS;
|
|
}
|
|
}
|