Skip to content

Commit 07cb7c2

Browse files
committed
Fixed permissions not being removed after takeRole
1 parent a9b5597 commit 07cb7c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CortexPE/Hierarchy/member/Member.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function getAttachment(): ?PermissionAttachment {
5757

5858
public function recalculatePermissions(): void {
5959
parent::recalculatePermissions();
60+
$this->attachment->clearPermissions();
6061
$this->attachment->setPermissions($this->permissions);
6162
}
6263

0 commit comments

Comments
 (0)