I am using this module for user profiles (as nodes) but I observed that only two people can see the initial "Create your profile" link on the user account page, and that is the "user 1" and the owner of the "profile" itself. I have a site-admin role used to administer stuff and strangely this role cannot see the initial "Create your profile". I have looked at the permissions page and all I see is under "node module" is "create profile content" which is checked for authenticated users. Please what permission can I use to allow the site-admin role to also see the initial "Create your profile".

CommentFileSizeAuthor
#3 content_profile-688260-3.patch923 bytesgreg.1.anderson

Comments

zserno’s picture

Try the 'administer nodes' permission.

aschiwi’s picture

Does that make sense though? Shouldn't a user with the permission to create the content profile content type's nodes be able to see that as well?

greg.1.anderson’s picture

Category: support » bug
Status: Active » Needs review
StatusFileSize
new923 bytes

I just ran into this bug recently -- odd that I missed it for so long, as I have been running content_profile on a D6 site for a couple of years, and only just noticed that 'administer nodes' is required to create content profile nodes.

The function content_profile_page_access is too restrictive; node_access('create', ...) should be sufficient to create a new content profile node. The attached patch allows semi-priviledged admins with 'create
content' perms, but not 'administer nodes' perms, to be able to create profile nodes for other users.

greg.1.anderson’s picture

Status: Needs review » Needs work

#3 was posted too hastily; I did not notice that, while the change above does in fact allow the menu item to be displayed for the content profile form, clicking on the menu item will bring a user to their own profile rather than a new, empty profile form, unless the profile exists, or they have the 'administer nodes' permission. It seems that perhaps the limitation here is masking a problem in some other module. I haven't had time to track it down yet, though.

zserno’s picture

Status: Needs work » Closed (duplicate)

@greg.1.anderson: hi, there's a long-time running issue about this topic: #697856: Introduce new permission: 'administer content profiles'
Please join and share your ideas.