User not being given role

Zahor - July 15, 2007 - 00:29
Project:Account Types
Version:5.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:rconstantine
Status:closed
Description

I'm using this module in conjunction with nf_registration_mod and have set certain roles with certain membership types. The users are being granted the membership type but they are not being granted the role. They have a role of "authenticated" before their first login and after their first login, their role disappears completely.

#1

rconstantine - July 15, 2007 - 02:16

First of all, you should be using the dev version of this module. Double check that and get back to me.

#2

Zahor - July 15, 2007 - 03:25

I am using the Dev version.

#3

rconstantine - July 16, 2007 - 16:08
Version:5.x-1.0» 5.x-1.x-dev

Okay, try a couple of things. First, make sure that the account types module works by itself. Setup several account types, associate roles with them, and assign them to users. Make sure that all works. Then add the registration mod module. I've been able to assign users account types without problems, so I'll check to see that their roles are intact and not disappearing. You get back to me with your evaluation of account types on its own, and I'll get back to you with what I find regarding the 'stickiness' of roles to users.

#4

rconstantine - July 16, 2007 - 16:23

It occurs to me to make sure you understand what the account types module is supposed to do.

Account types do not assign roles to users. They only restrict which roles can be applied to a user. You still have to assign the user roles like you would without the module. The only difference is that the checkboxes for roles not allowed for a given account type will be disabled.

So if you have a brand new user, and the account type you have assigned them does not include the 'authenticated user' role, then it will be taken away when the user account information is saved. In other words, if you want all users to be allowed the authenticated user role, then you have to assign that role to all account types so that it isn't taken away when the account type changes.

So make sure you've got a handle on this functionality first.

#5

rconstantine - July 16, 2007 - 16:32
Category:support request» bug report
Assigned to:Anonymous» rconstantine

It would appear that I've somehow killed the 'authenticated user' role. For now, make up your own role to use in its place. However, this won't be an acceptable solution because it can't automatically be assigned at registration. So I'll fix this as soon as I can.

#6

rconstantine - August 16, 2007 - 00:03
Status:active» fixed

OK, I fixed this and will upload as soon as I can.

Also added the ability to mark roles that will be automatically assigned to the user when they first get a new account type assigned to them. You can unassign these roles as you normally would, but you will at least have several assigned at once by default.

I'll probably release a new official release due to this.

#7

Zahor - August 16, 2007 - 03:50

Thank you, thank you, thank you!

#8

Anonymous - August 30, 2007 - 04:03
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.