Skip to content

Commit

Permalink
Merge pull request #60 from istolar/OI-39-user-points
Browse files Browse the repository at this point in the history
OI-39: #comment Added condition to check if voted the same user that created the idea.
  • Loading branch information
db-Matroskeen committed Jun 25, 2020
2 parents c865357 + e1ccb9a commit 9aaa152
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/install/rules.reaction.earn_points_for_voting_a_idea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ expression:
provides_mapping: { }
condition_id: openideal_user_is_voted
negate: false
-
id: rules_condition
uuid: 077a555d-78ba-4e37-bf84-5bfb1bafeed6
weight: 0
context_values:
operation: '=='
context_mapping:
data: vote.entity_id.entity.uid.target_id
value: vote.user_id.target_id
context_processors:
operation:
rules_tokens: { }
provides_mapping: { }
condition_id: rules_data_comparison
negate: true
actions:
id: rules_action_set
uuid: 6e2e6d92-312b-4899-ae41-b4688bd8d0d9
Expand Down

0 comments on commit 9aaa152

Please sign in to comment.