summaryrefslogtreecommitdiffstats
path: root/library/Poolctrl
diff options
context:
space:
mode:
authorSebastian Wagner2011-10-31 12:06:09 +0100
committerSebastian Wagner2011-10-31 12:06:09 +0100
commit4fcef8ec68a76ac5a1290ad1fdd9fefeb03854b5 (patch)
tree3ac54c2e7587f97d111890d598b5fade29674eec /library/Poolctrl
parenttest (diff)
downloadpoolctrl-4fcef8ec68a76ac5a1290ad1fdd9fefeb03854b5.tar.gz
poolctrl-4fcef8ec68a76ac5a1290ad1fdd9fefeb03854b5.tar.xz
poolctrl-4fcef8ec68a76ac5a1290ad1fdd9fefeb03854b5.zip
test
Diffstat (limited to 'library/Poolctrl')
-rwxr-xr-xlibrary/Poolctrl/Acl.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/Poolctrl/Acl.php b/library/Poolctrl/Acl.php
index 5b4609c..6cd7a87 100755
--- a/library/Poolctrl/Acl.php
+++ b/library/Poolctrl/Acl.php
@@ -24,7 +24,7 @@ class Poolctrl_Acl
public function checkRight($rightShortcut) {
if(!isset($this->host) || !isset($this->path) || !isset($this->referer)) {
- return false;
+ return 0;
}
$dataToSend = "rightshortcut=" . $rightShortcut;
@@ -56,12 +56,12 @@ class Poolctrl_Acl
$success = $checkRightXML->checkright->success;
if($success == "true") {
- return true;
+ return 1;
} else {
- return false;
+ return 0;
}
} else {
- return false;
+ return 0;
}
}