As I noted over at #47913-13: More themeability (point B), consider the following scenario:

Site only allows signups for privileged roles, not all authenticated users. Anonymous user visits a signup-enabled node, and sees "Please login or register to sign up for this event." They login as a regular authenticated user, redirect to this node, and now they see nothing about signups at all. Perhaps that login text stuff for anonymous users should be conditional on if the 'authenticated user' role has the 'signup for content' permission.

Thoughts? Should be a relatively easy patch once #47913 lands. Just want to get feedback before anyone writes the code. Of course, there will be a theme function for this, so sites can turn it off at the theme layer if they need, but it seems reasonable for the module to just do this itself, no?

CommentFileSizeAuthor
#1 321463_no_signup_login_link.1.patch2.35 KBdww

Comments

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new2.35 KB

Now that #47913 is committed, here's a patch for this.

greggles’s picture

Core in 6.x does this kind of check. So, to the extent that you believe you should "do what core does" then yeah, it's good.

stborchert’s picture

Status: Needs review » Reviewed & tested by the community

Works and can be commited.

dww’s picture

Status: Reviewed & tested by the community » Fixed

Cool, thanks for the reviews and tests, folks. I committed that to HEAD, and backported/committed to DRUPAL-5. I didn't get a chance to test the backport (I'm traveling this weekend and don't have my usual dev environment), so if anyone can try out DRUPAL-5 branch of signup on a test site, that'd be lovely. ;)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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