Closed (works as designed)
Project:
Views (for Drupal 7)
Version:
6.x-2.12
Component:
user data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2008 at 15:31 UTC
Updated:
26 Apr 2011 at 23:30 UTC
Trying to rebuild a Views 1 view that included the filter: "Node: Author is Anonymous / is equal to / Anonymous" I selected the "User: roles" filter. In its configuration pane, the "Options" multi-select (that should show roles available I presume) is blank. I had expected to find anonymous and authenticated user roles here.
A screenshot is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| no_user_roles_visible.png | 157.89 KB | horncologne |
Comments
Comment #1
merlinofchaos commentedThe anonymous and authenticated roles are not stored in the database in Drupal 6 and therefore cannot be queried.
I believe the User: Name filter includes an anonymous option.
Comment #2
horncologne commentedThanks, Earl!
I tried to slip a 0 into User: Name to fool it (as in uid 0), but I completely failed to try "Anonymous" there.
Thanks again for your help.
- jam/HornCologne
Comment #3
EdinburghRob commentedI had a look at the users table and noticed that the 'created' field for the anonymous 0 user is set to 0. (Beginning of Unix Time.. or a second before).
I forget when that is, but I put in a filter that the user should have been created after 1980. That filtered out the anonymous user in my view.
Not the best solution, because it would make more sense to be able to filter on the uid field.
Comment #4
Michsk commentedmany thanks!
Comment #5
tbertin commentedI have a View that I only want the content visible only to a certain dept. For logged in users, my filters work perfectly. Other users should see the empty text. I've tried using the above options to make my View not visible to anonymous viewers - both by User Name (Anonymous) and Created Date (before admin created date) filters. Neither options are working to show the anonymous viewers the empty text. In the database, the name field is blank and the created date is 0 for UID 0. Here is my View and thanks in advance for any guidance.
Comment #6
dagmarPlease don't hijack issues. Open a new Support request with your question. Thanks.
Comment #7
tengokuHello, if the status change is wrong i'm sorry.
My problem is this:
I created a user type view. its just a user list with some filters but one of them is role. i got the dev version of 6.x.2x12 and the problem is that i can't use "authenticated user" as a filter item (the filter is exposed so i really need auth users as option).
Any help would be appreciated.
Thanks.
Comment #8
Jerome F commentedPlease, read #1 and #6 again. The authenticated role is not stored in the database in Drupal 6. If you need to use an exposed filter, try with an other role. Give that role to your authenticated users.
Comment #9
esmerel commented