Skip to content

Commit

Permalink
fix: mask out rule permissions before merging permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Mar 4, 2024
1 parent 79dcc89 commit afeef5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ACL/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(IUserMapping $userMapping, int $fileId, int $mask, i
$this->userMapping = $userMapping;
$this->fileId = $fileId;
$this->mask = $mask;
$this->permissions = $permissions;
$this->permissions = $permissions & $mask;
}

public function getUserMapping(): IUserMapping {
Expand Down

0 comments on commit afeef5c

Please sign in to comment.