Fix permission check NO_CI

This commit is contained in:
Dennis Eichhorn 2021-04-22 16:44:31 +02:00 committed by GitHub
parent 672ab973c8
commit 2a07ba2f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -414,7 +414,7 @@ class PermissionAbstract implements \JsonSerializable
&& ($type === null || $this->type === null || $this->type === $type)
&& ($element === null || $this->element === null || $this->element === $element)
&& ($component === null || $this->component === null || $this->component === $component)
&& ($this->permission | $permission) === $this->permission);
&& ($this->permission & $permission) === $permission);
}
/**