I have the following combinations of settings:

User page display style: Don't display this content profile on the user account page
Show a link to the content profile creation page, if there is no profile: Checked

Expected results: When user goes to his/her account page and they have no contentprofile, a link is displayed to the creation page. In all other cases, nothing is shown on the page.

Actual results: When user goes to his/her account page, a link to the creation page is ALWAYS displayed, whether they have already created a contentprofile or not.

CommentFileSizeAuthor
#5 content_profile.module.patch815 bytesjhedstrom
#3 addlink.patch933 bytesLapino

Comments

Lapino’s picture

Status: Needs work » Needs review

Attached patch seems to fix it. (See further for right patch)

fago’s picture

Status: Active » Needs work

hm, I can't apply your patch. Please create a patch for the whole module -> http://drupal.org/patch

Furthermore make sure to add a space between ($node, $uid)) according to the coding styles.

Lapino’s picture

StatusFileSize
new933 bytes

This changed patch should work when applied in module directory (I don't have a full CVS drupal installation on this PC at the moment, sorry).

Lapino’s picture

jhedstrom’s picture

StatusFileSize
new815 bytes

I took this patch one step further and added an access check, in the event that a site has other people editing the user profile. This patch adds a check for "administer nodes" or "edit any profile content" permission.

jhedstrom’s picture

Although now that I'm using the patch I just submitted, I realize it isn't that usefull since the profile author still must manually be set to the correct user.

fago’s picture

Status: Needs review » Fixed

thanks for the report, however the patch #3 didn't work and a new permission (#5) makes no sense. Anyway, I've fixed it in 6.x-dev.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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