Hi,
If 'Show this node profile during user registration' for a content type, then I, as a user with 'administer users' permission cannot create a new user account at 'user/user/create' without having 'administer nodes' privileges.
Without 'administer nodes' permissions, I get an error 'You can't create more nodes of this type for this user.' Doing a dump in node_validate, it looks like node->name gets set to the new username I'm creating, but node->uid contains my UID. I already have a profile node, so another one can't be created.
This same thing occurs if 'Show this node profile during user registration' is *not* ticked and I create a user, then go to its profile, click on the 'edit' tab and go to the corresponding user category (user/4191/edit/user_profile). I cannot create the node because node->uid gets set to my UID rather than that of the user I am editing.
Maybe this isn't a problem for most people, but I would like certain site administrators to be able to create users (and their profiles) without having 'administer nodes' permission. Has someone found a way to get this to work? The fact that node->name is set correctly but node->uid is not set to the corresponding UID looks like a bug to me, but maybe there is something I don't understand.
Thanks in advance for any help,
-Ian
Comments
Comment #1
miiimoooI can confirm this behaviour. I agree that it should be sufficient for a user to have create user_profile content and edit user_profile content permissions and not require the administer nodes permission. Is there a workaround?
Comment #2
fagothis is the way drupal works - nothing nodeprofile can do about this.