Skip to content

Commit 19b3b94

Browse files
committed
force interface
1 parent c6c68ad commit 19b3b94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/toolbox.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ public function executeAsGlpiinventoryUser($function, array $args = [])
352352
= "'" . implode("', '", $_SESSION['glpiactiveentities']) . "'";
353353
$_SESSION['glpiparententities'] = [];
354354

355+
$_SESSION['glpiactiveprofile']['interface'] = 'central';
356+
355357
// Execute function with impersonated SESSION
356358
$result = Session::callAsSystem(fn() => call_user_func_array($function, $args));
357359

0 commit comments

Comments
 (0)