tbrehm
2010-06-15 d5628a9b2f745989db70913a54ac6b730b2a1735
Fixed permission problem in remoting API: http://www.howtoforge.com/forums/showthread.php?t=46539
1 files modified
4 ■■■ changed files
interface/lib/classes/remoting_lib.inc.php 4 ●●● patch | view | raw | blame | history
interface/lib/classes/remoting_lib.inc.php
@@ -166,7 +166,9 @@
                $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;