This patch allows admin users to flag a Terms and Conditions version as either major or minor.
By default, the legal module will force all users to accept the Terms and Conditions again if they change. I have had a business requirement to allow changes to the T&C's without forcing users to accept them again. As a result, we have developed the concept of a major or minor version. A minor change may be correcting a spelling mistake, reformatting or any other change that a business may deem as not significant enough to require users to reconfirm.
Major:
If it is a major version, all users will be forced to reconfirm when they login (if they have not already accepted that version when registering)
Minor:
If it is minor version, users will not be forced to accept it when they login if they have already accepted the latest major version
On login:
On login, all users will be asked to accept the latest version of the T&C, whether that be major or minor
Notes:
The patch will mark all existing T&C's as minor
My default, T&C's are minor, unless explicitly changed to major via the radio button
Only users with the correct permission (set major Terms and Conditions) will see the radio button. If they don't have the correct permission, the version will be minor
The default can be changed via a separate admin screen. Only users with the correct permission (change major default) will be allowed to change the default.
I believe this is a flexible approach that maybe of benefit to others (indeed they are a few requests in the issue queue for something similar).
| Comment | File | Size | Author |
|---|---|---|---|
| legal_major_minor.patch | 6.1 KB | blairski |
Comments
Comment #1
robert castelo commentedblairski thank you for taking the time to provide this patch.
I'm taking a hard line approach with this module of treating an on-line contract the same as an off-line one: ANY changes, even a space or comma, will be treated as a new version of the contract that both parties must agree to.
There are other modules that provide cosmetic T&C features where the site manager can entirely change the contract without requiring users to accept again, if that fits the user case then site builders can use one of those.
Since I'm not going to accept the patch I didn't test it, but did a very quick scan through the code and looks well written.