Hi, it would be great if I can block certain untrusted roles from posting links too.

Comments

Flying Drupalist’s picture

Status: Active » Fixed

if (!$user->uid || in_array('role', $user->roles)) {

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pieterdc’s picture

Status: Closed (fixed) » Active

I'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.

pieterdc’s picture

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.

pieterdc’s picture

Status: Active » Closed (works as designed)

The 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.