Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Or else, we'd need to provide a permission, such as "Bypass block anonymous links" which gets enabled be default for the "authenticated user" role... implement hook_permission, make an install file, implement it within the spam checking function - this is about it I think.
It would give you all the (role based configuration) flexibility needed.
Comments
Comment #1
Flying Drupalist commentedif (!$user->uid || in_array('role', $user->roles)) {
Comment #3
pieterdcI'm reopening this issue because it isn't fixed in the module's official released code.
If you want the requested feature, you could manually patch as Flying Drupalist suggests.
Comment #4
pieterdcOr else, we'd need to provide a permission, such as "Bypass block anonymous links" which gets enabled be default for the "authenticated user" role... implement hook_permission, make an install file, implement it within the spam checking function - this is about it I think.
It would give you all the (role based configuration) flexibility needed.
Comment #5
pieterdcThe Spam module has such a permission, called 'bypass filters'.
You can use that module if you want this feature.
Ps: use a version more recent than December 26th, 2010.