Currently when making a registration, the registrar is required to choose who the registration is for. The registrar him/herself, another account or another person. Whilst this allows for maximum flexibility, in some cases this makes for a rather clumsy interface and poor UX.
There are occasions where the registrant will be of a single known type and it is therefore a bit of a nuisance having to choose from the dropdown selector. In other instances, the registrant will more than likely be of a given type, such that it would make for better usability if that type could be offered as a default.
Please provide two options for configuration of registrant type that will change the form fields accordingly.
- Restricting registrations to given types of registrant - (hiding the dropdown completely if only one type was allowed to register)
- Allow for a given registrant type to be pre-selected as a default.
I understand that the permission system does allow some flexibility by preventing a registrar user from registering other accounts or other people, but not for disallowing registrations for the registrar him/herself. It is presumed that the registrar should be able to register, but often times the registrar is actually an admin/organizer who has no need to register.
A similar subject to this has been discussed before at https://drupal.org/node/1595002 , but it didn't seem to get anywhere.
Given that this module has now attracted significant traction, I wonder whether others would find this feature request as useful as I would?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2060543-6.patch | 1.41 KB | rpayanm |
| #3 | permission-to-register-self-2060543-3.patch | 1.39 KB | redkelpie |
Comments
Comment #1
redkelpie commentedI was running into a similar issue where we would have administrators who need to register other users, but not themselves. I was able to add a permission for "register self" and then added a condition for that permission in the registration_access_people function.
I'm using version 7.x-1.1 and did't try this with the dev branch.
So in registration_module I added a permission to function registration_permission_list()
and changed function registration_access_people() to account for that permission
to
The results are:
If user doesn't have the permission of "register self" but has "register other account" they are only presented with the input field and not the drop down. If they have "register other account/other people" they get the drop down between those two options but not the "Myself" option.
I haven't run into any problems with this and can make a patch.
Comment #2
mrpauldriver commented@redkelpie
It sounds like you have already recognized the need for this feature and have indeed improved the code.
A patch would me really useful
Comment #3
redkelpie commentedComment #4
mrpauldriver commentedThanks. I don't have spare time to apply this just yet but will report back in a few days.
Comment #5
mgiffordComment #6
maxplus commentedThanks, helped me out too.
Much cleaner without the dropdown!
Comment #7
rpayanmComment #8
CountPacMan commentedPatch is clean and works. Will push to dev. Thanks!