The "Project" dropdown on the "Projects by All" page (http://drupal.org/project/user) doesn't include all projects when browsing the site as an anonymous user. It lists just a few projects, which I assume are projects that are assigned to the anonymous user.

Nicelinks
Polder
Recorder
Series
Simpleleads
Stylebox
Taxonomy HTML
Viewcount
Xssfilter

Please see the attached screenshot for reference.

Maybe this page isn't linked to anywhere on the site for anonymous users, but it shows up in Google search results. Maybe the dropdown should include all projects or the entire page not be accessible to anon users?

CommentFileSizeAuthor
project user anon.png91.96 KBChrisBryant

Comments

dww’s picture

Project: Drupal.org infrastructure » Project issue tracking
Version: » 6.x-1.x-dev
Component: Drupal.org module » Views integration
Issue tags: +drupal.org upgrade

Yeah, this page never used to be accessible to anonymous users at all. I agree it's a little wonky how it is now. This is related to but separate from #367332: "My issues" vs "Issues for All".

dww’s picture

Title: "Project" dropdown on Projects by All page doesn't include all projects » Hide the "My projects" page for anonymous users
Assigned: Unassigned » dww

There's a views bug preventing the easy fix for this, but I'm working on it. Stay tuned.

dww’s picture

Status: Active » Postponed

This depends on #378534: Views argument validators don't fire when the argument is 0 due to PHP == insanity landing in views, then it's a simple matter of validating the user argument to belong to the authenticated user role.

dww’s picture

Status: Postponed » Active

Earl committed my patch, this is active again. Should be easy. This will go out with another round of default issue view fixes for #376882: No "new" or "updated" markers next to issue titles in issue queue views.

dww’s picture

Status: Active » Fixed

Trivial patch to the default view committed. ;)

diff -u -p -r1.34 project_issue.views_default.inc
--- views/project_issue.views_default.inc   20 Feb 2009 23:31:12 -0000  1.34
+++ views/project_issue.views_default.inc   20 Feb 2009 23:32:23 -0000
@@ -1394,8 +1394,8 @@ function project_issue_views_default_vie
       'default_argument_fixed' => '',
       'default_argument_php' => '',
       'validate_user_argument_type' => 'either',
-      'validate_user_restrict_roles' => 0,
-      'validate_user_roles' => array(),
+      'validate_user_restrict_roles' => 1,
+      'validate_user_roles' => array('2' => 2),
     ),
   ));
   $handler->override_option('filters', array(

;) Now deployed on d.o, too. As anonymous, compare these two:
http://drupal.org/project/user/dww
http://drupal.org/project/user

ChrisBryant’s picture

Awesome, you rock! Thanks for all your hard work on the d.o upgrade. It's really nice being able to sort by total replies on project issues among other things. :-)

Status: Fixed » Closed (fixed)
Issue tags: -drupal.org upgrade

Automatically closed -- issue fixed for 2 weeks with no activity.