This module allows to grant or remove roles by simply clicking a link. Wich roles are removed or granted depends on the attrbutes data-add-role od data-remove-role.
It is also possible to add/remove more than one role by simply separate multiple roles by a comma.
Important note
Make sure to only allow certain roles to be added or removed by clicking an element. Otherwise it would be possible for attackers to get any role they want. By default this module prevents users from getting any role.
Examples: