Skip to content

Commit

Permalink
remove debug-Ausgabe bei Update auf 4.0 (roles) (#1208)
Browse files Browse the repository at this point in the history
closes #1202
  • Loading branch information
alxndr-w authored Dec 31, 2021
1 parent 0de891b commit 144b5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/manager/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
foreach (rex_sql::factory()->getArray('SELECT id, perms FROM ' . rex::getTablePrefix() . 'user_role') as $role) {
if (false === strpos((string) $role['perms'], '"yform_manager_table_edit":')) {
$perms = str_replace('"yform_manager_table":', '"yform_manager_table_edit":', (string) $role['perms']);
rex_sql::factory()->setDebug()->setQuery('UPDATE ' . rex::getTablePrefix() . 'user_role SET perms=? where id=?', [$perms, $role['id']]);
rex_sql::factory()->setQuery('UPDATE ' . rex::getTablePrefix() . 'user_role SET perms=? where id=?', [$perms, $role['id']]);
}
}

Expand Down

0 comments on commit 144b5dd

Please sign in to comment.