Needs work
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Core integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2011 at 22:16 UTC
Updated:
13 Mar 2015 at 10:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
carsonwI have the exact same issue as rszrama.
Comment #2
simon_s commentedI can confirm this problem with site:current-user role anonymous user also for Version 2.0 7.x.
A condition on role anonymous with site:current-user never gets true.
Comment #3
fagoThat's strange. drupal_anonymous_user() properly contains the role, so maybe the entity property gives back a wrong user object in that case.
Comment #4
fagoThat entity patch should do it - please test.
Comment #5
simon_s commentedThanks a lot fago, with this entity patch applied it works now for anonymous users!
(I use it for silent node flagging on viewing nodes (with rules + entity api + flags + session api))
Comment #6
fagothanks for testing, I committed the fix to the entity api.
Comment #7
fago