Skip to content

Commit d5628a9

Browse files
committed
Fixed permission problem in remoting API: http://www.howtoforge.com/forums/showthread.php?t=46539
1 parent 5771a59 commit d5628a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interface/lib/classes/remoting_lib.inc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ function loadUserProfile($client_id = 0) {
166166
$this->sys_userid = $user['userid'];
167167
$this->sys_default_group = $user['default_group'];
168168
$this->sys_groups = $user['groups'];
169-
$_SESSION["s"]["user"]["typ"] = $user['typ'];
169+
// $_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';
170172
}
171173

172174
return true;

0 commit comments

Comments
 (0)