Author: Lars Michelsen <[email protected]>
Date: Mon Nov 5 15:42:47 2012 +0100
Committer: Lars Michelsen <[email protected]>
Commit-Date: Mon Nov 5 15:42:47 2012 +0100
Fixed error after API change in multisite authorization module
---
.../core/classes/CoreAuthorisationModMultisite.php | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/share/server/core/classes/CoreAuthorisationModMultisite.php
b/share/server/core/classes/CoreAuthorisationModMultisite.php
index 43d6370..d90684a 100644
--- a/share/server/core/classes/CoreAuthorisationModMultisite.php
+++ b/share/server/core/classes/CoreAuthorisationModMultisite.php
@@ -117,9 +117,13 @@ class CoreAuthorisationModMultisite extends
CoreAuthorisationModule {
return false;
}
- public function parsePermissions() {
+ public function parsePermissions($sUsername = null) {
global $AUTH;
- $username = $AUTH->getUser();
+ if($sUsername === null) {
+ $username = $AUTH->getUser();
+ } else {
+ $username = $sUsername;
+ }
if(!isset($this->permissions[$username])
|| !isset($this->permissions[$username]['permissions']))
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins