We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5771a59 commit d5628a9Copy full SHA for d5628a9
interface/lib/classes/remoting_lib.inc.php
@@ -166,7 +166,9 @@ function loadUserProfile($client_id = 0) {
166
$this->sys_userid = $user['userid'];
167
$this->sys_default_group = $user['default_group'];
168
$this->sys_groups = $user['groups'];
169
- $_SESSION["s"]["user"]["typ"] = $user['typ'];
+ // $_SESSION["s"]["user"]["typ"] = $user['typ'];
170
+ // we have to force admin priveliges for the remoting API as some function calls might fail otherwise.
171
+ $_SESSION["s"]["user"]["typ"] = 'admin';
172
}
173
174
return true;
0 commit comments