I've had some issues when I set the 'View Terms and Conditions' permission that only Role A is allowed to see the legal, the Role B have see the legal too. --> Not good!
I've added 2-3 simple code fragment in this patch. It tested if the user has permission to see the legal. When Not, skip legal.
Now only Roles which have Permission 'View Terms and Conditions' is set, see the legals.
Tested and works when:
- New user first login (Role A see, Role B not)
- Legal has changes and user log in (Role A see, Role B not)
- In profile edit form (Role A see, Role B not)
Please give Feedback
Comments
Comment #1
danielen commentedComment #2
danielen commentedComment #4
danielen commentedComment #5
danielen commentedComment #6
danielen commentedComment #10
grn commentedI tried to apply this patch #5 manually, but anonymous users can still see T&C on the user registration form. Hmm, how to avoid this?
Thanks.
/GrN.dk
Comment #11
robert castelo commentedThere are new options in the 7 dev branch for restricting T&Cs by role, please try out and if it doesn't fit your user case reopen this issue again.