By SamSound on
Ive got a content type which only RoleB has access to. by deafult users are set to RoleA. When RoleA tries to view content they need to be RoleB to have access to, they will see a block which says you need to be RoleB to have access to this content.
What I would like is a link in that block which, says something like, click here to apply to become RoleB.
Ive looked through the role access. change role. etc modules. And there are modules which let you change role from user/%/edit.
But im wondering if theres away I can set up a trigger or something which changes user roles from other pages.
Is ithis possible? can I do this?
Thanks for any suggestions and advice.
Comments
Custom PHP Code
Could you perhaps do something with some custom PHP code in your block? From experience you can access a lot of user variables through Drupal and could 'quite' easily achieve this with a bit of good old tinkering...