diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-01-06 10:27:43 -0800 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-01-06 10:27:43 -0800 |
commit | b9ad156b06ca6d5530803836871777b10894f130 (patch) | |
tree | 1ea447fcf0d09c3be39851b3bc3dd39052b82f3a | |
parent | 71e90b1c66985b02b7df3387930a5fa007ca9755 (diff) | |
parent | def492a2d77af9effca204483b570061202cda5b (diff) | |
download | rpg-b9ad156b06ca6d5530803836871777b10894f130.tar.gz rpg-b9ad156b06ca6d5530803836871777b10894f130.tar.bz2 |
Merge pull request #153 from gturri/xmlrpcPerms
Made auth_aclcheck always return int
-rw-r--r-- | inc/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php index 9c458338d..c68a699fe 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -580,7 +580,7 @@ function auth_aclcheck($id, $user, $groups) { } if($perm > -1) { //we had a match - return it - return $perm; + return (int) $perm; } } @@ -610,7 +610,7 @@ function auth_aclcheck($id, $user, $groups) { } //we had a match - return it if($perm != -1) { - return $perm; + return (int) $perm; } } //get next higher namespace |