By I am learning on
Hi,
I've two roles, teachers and students, depending upon the user role, a user can access the sections of the website. All I want is that anybody can register as role Student but for Teacher role, admin will approve the account.
I could not figure out this, please guide.
Regards
Comments
Hello, As you probably
Hello,
As you probably know, Drupal has two locked roles: anonymous users, and authenticated users. Anyone who registers in a Drupal site has the authenticated users role.
Thus, your students will only have authenticated users role.
Now you can create an additional role: Teachers. You (or any new role with users management permissions) are the only people who can assign any user to a different role. Thus, your Teachers will be created as students, and then you can "upgrade" them to Teachers.
Regards,
Sergio
Thanks Sergio, this is fine,
Thanks Sergio, this is fine, unfortunately this is little different from my requirement. All registrations for the role Student (or authenticated) need no approval.
When a user selects the role "Teacher", his/her account should be disabled till the admin approves it. It would be great if the admin receives a registration mail only for the "Teacher" role.
Regards
Rules module
You might be able to use the Rules module to have it block a user that selects teacher as the role. Then an admin can remove the block.
Sounds good, thanks. Regards
Sounds good, thanks.
Regards