Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 5d739a5

Browse files
committed
Fix available permission restriction
1 parent 3b34888 commit 5d739a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/core/classes/class.AJXP_Permission.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function denies(){
8383
}
8484

8585
function testPermission($numPerm){
86-
if(is_integer($numPerm) && ($numPerm < 15)){
86+
if(is_integer($numPerm) && ($numPerm < self::MASK)){
8787
$numPerm = $numPerm & self::MASK;
8888
if (($this->value !== 0) && $numPerm === 0) return false;
8989
if (($this->value === 0) && $numPerm === self::DENY) return true;

0 commit comments

Comments
 (0)