Commit d5628a9b authored by tbrehm's avatar tbrehm
Browse files

Fixed permission problem in remoting API: http://www.howtoforge.com/forums/showthread.php?t=46539

parent 5771a59a
......@@ -166,7 +166,9 @@ class remoting_lib {
$this->sys_userid = $user['userid'];
$this->sys_default_group = $user['default_group'];
$this->sys_groups = $user['groups'];
$_SESSION["s"]["user"]["typ"] = $user['typ'];
// $_SESSION["s"]["user"]["typ"] = $user['typ'];
// we have to force admin priveliges for the remoting API as some function calls might fail otherwise.
$_SESSION["s"]["user"]["typ"] = 'admin';
}
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment