When accounts are activated but the user has not yet logged into the site only Admins can view profile pages. When clicking on activity reports such as 'Joe bloggs created the user profile Joe Bloggs' a regular user will get a page not found error.
Therefore it would be better to have the profile creation report show up only AFTER the new user has logged in for the first time.
Comments
Comment #1
plan9 commentedProbably a minor tweak needed. Anyone know how to fix this?
Comment #2
jaydub commentedComment #3
sirkitree commentedtagging for next point release.
Comment #4
jaydub commentedI'm thinking that it might be easier to remove the item from the activity list at display time rather than have to delay the activity record insert until the user has been created AND has logged in (thus updating the access column of the {user} table.
The relevant code here lies in the user_view_access() function which check for amongst other things whether or not the user has an access time other than 0 as well as the regular checks you'd expect such as 'access user profiles'.
For the sake of my co-developers I'm pasting in a quick implementation of this for review:
In activity module add status and access fields which are expected by user_view_access():
In useractivity module add an implementation of hook_activityapi() to check for view access on the users in a useractivity:
Comment #5
sirkitree commentedretagging
Comment #6
jaydub commentedcommitted to CVS.