Limit the total number of roles a user can apply for

GiorgosK - April 9, 2008 - 20:09
Project:Apply for role
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

admin/settings/apply_for_role
Allow multiple roles per application: set to NO
Allow users to apply for roles on registration: set to YES

user registers and picks a role from dropdown
his role is approved by admin > admin/user/apply_for_role
user/x/apply_for_role
the user can apply for another role
his new role is approved by admin > admin/user/apply_for_role
now the user has 2 roles

is that intended ??
if it is then why not an option for one role per user
no user can have more than one role !!

#1

Soren Jones - April 10, 2008 - 00:02
Title:apply for role: the option for preventing multiple roles is not working correctly» Limit the total number of roles a user can apply for
Category:bug report» feature request

The option is to "Apply for multiple roles per application".

As the description says, "Chosing 'no' will limit users to applying for only one role per role application. Choosing 'yes' will allow users to apply for multiple roles per role application."

There is currently no option to limit the total number of roles a user can apply for. Nor is there an option to limit the total number of roles a user can have. (Note: The minimum would need to be two, not one.)

I've changed this to a feature request.

#2

Eirik_R - October 3, 2008 - 11:37

I made a small change to let admin choose how many roles a user can apply for/be assigned.

Sorry I couldn't make a patch from it, I'll just attach the whole module instead.

I've based it on the official release 5.x-1.4 in case there's serious differences. I had to change the file ending to upload...

Sorry about the many edits, but I found two errors I had made, and then the file was cached somewhere so I couldn't upload the updated, but now the file should be fine if you remove 2 and .txt

AttachmentSize
apply_for_role2.module.txt16.86 KB

#3

Eirik_R - October 3, 2008 - 11:35

ignore

 
 

Drupal is a registered trademark of Dries Buytaert.