Permalink
Browse files

Merge pull request #153 from gturri/xmlrpcPerms

Made auth_aclcheck always return int
  • Loading branch information...
splitbrain committed Jan 6, 2013
2 parents 71e90b1 + def492a commit b9ad156b06ca6d5530803836871777b10894f130
Showing with 2 additions and 2 deletions.
  1. +2 −2 inc/auth.php
View
@@ -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

0 comments on commit b9ad156

Please sign in to comment.