Problem/Motivation
Administrators and others should not need to load & run antibot. This reduces loaded assets and prevents side-effects.
Such a "skip" is already implemented in similar modules like "Captcha", "Honeypot", ... and would also make sense here
Steps to reproduce
Proposed resolution
Add "Skip Antibot" permission and exclude the selected roles from antibot execution.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3263848-9.patch | 1.62 KB | gaurav.kapoor |
| #4 | 3263848-4.patch | 894 bytes | gaurav.kapoor |
Issue fork antibot-3263848
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anybodyComment #3
gaurav.kapoor commentedComment #4
gaurav.kapoor commentedAdded permission and simple logic to prevent the loading of Antibot for users with the respective permission.
Comment #5
gaurav.kapoor commentedComment #6
gaurav.kapoor commentedComment #7
anybodyVery cool @gaurav.kapoor - nice work!
RTBC +1
Comment #8
anybodyJust had another look at the full code and I think the "Show form ID" functionality should then be moved before the if clause, otherwise it will never be visible to these users.
Comment #9
gaurav.kapoor commentedI completely forgot we had that feature for debugging forms. Modified the logic a little bit to make sure both skip and administer antibot permissions are respected.
Comment #10
anybodyThank! The patch is hard to read, would you perhaps mind to create it as issue fork here?
Further simplification and better readability:
instead of
Comment #12
gaurav.kapoor commentedAdded MR and also did changes as per #10.
Comment #13
anybodyPerfect, thanks! :)
Comment #15
gaurav.kapoor commented