mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#11117 Add conditional to exclude some values from metaconsole
This commit is contained in:
parent
e96fda12eb
commit
ee427d2694
@ -801,6 +801,12 @@ function update_user(string $id_user, array $values)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
unset($values['id_skin']);
|
||||
unset($values['section']);
|
||||
unset($values['default_event_filter']);
|
||||
}
|
||||
|
||||
$output = db_process_sql_update('tusuario', $values, ['id_user' => $id_user]);
|
||||
|
||||
if (isset($values['is_admin']) === true && (bool) $values['is_admin'] === true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user