Skip to content

Commit

Permalink
Fix typo in condition operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Dec 22, 2023
1 parent b349766 commit 4075d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Eck/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static function getTypePermissionName(string $op, string $type): string {
if (!in_array($op, [self::ACTION_VIEW, self::ACTION_EDIT, self::ACTION_DELETE], TRUE)) {
throw new \CRM_Core_Exception("Invalid operation for ECK entity type-specific permission: {$op}.");
}
if (NULL !== \CRM_Eck_BAO_EckEntityType::getEntityType($type)) {
if (NULL === \CRM_Eck_BAO_EckEntityType::getEntityType($type)) {
throw new \CRM_Core_Exception("Invalid ECK entity type name for type-specific permission: {$type}.");
}
return "{$op} eck entity {$type}";
Expand Down

0 comments on commit 4075d6e

Please sign in to comment.