Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hi,
I'm new to drupal and rules. When I wan't to add the User_has_role condition the module return me an error.
Error: Call to a member function id() on string in Drupal\rules\Plugin\Condition\UserHasRole->Drupal\rules\Plugin\Condition\{closure}() (line 55 of modules\rules\src\Plugin\Condition\UserHasRole.php).
In User data selector I've tried a lot of thing like :
@user.current_user_context:current_user
node.uid
node.uid.entity
..
But nothing seem to work
Comments
Comment #2
TR CreditAttribution: TR commentedDuplicate of #2816157: Simplify UserHasRole::doEvaluate()