Fantastic Module! thanks!

I think it would be a great feature if this module could allow for users of a certain role to gain permission to edit/create the content profile of other users. Sort of like the user admin permission.

Comments

akolahi’s picture

well a workaround for me, and seems to me to make more sense is to grant this permission based on if the user has permission to administer users:

In function content_profile_show_profiles($uid)

Instead of

elseif (user_access('create '. $type .' content') && content_profile_get_settings($type, 'add_link') && !$node && ($uid == $user->uid || user_access('administer nodes'))) {
    elseif (user_access('create '. $type .' content') && content_profile_get_settings($type, 'add_link') && !$node && ($uid == $user->uid || user_access('administer nodes') || user_access('administer users'))) {
akolahi’s picture

Well, the "work around" above is not exactly working when trying to add/edit the content profile of another user unless the user has administer nodes rights. I wonder if somewhere else is being tested for 'administer nodes' other than in the function above?

fago’s picture

Status: Active » Closed (won't fix)

The mentioned code is correct - it just displays the UI when the user has permission to do it. What you want is altering the content node's access, try a module like content access which allows fine grained permissions per node type or even node.