From: chromatic <chr...@rm...> - 2001-09-11 23:01:02
|
Hi everyone, I've spent a few minutes looking at Slash::Utility::Access. With a few changes, it would be possible for filterOk() to apply comment filters only on users with karma below a specific threshold. This gives more trusted users less obstacles to overcome to post successfully. There are two options. First, the entire function could be subverted by a check before the loop. Something like: return 1 if $user->{karma} > 20; In this case, it's probably best to add a configuration variable instead of hardcoding the example value of 20. The other option is to add a karma field to each comment filter, and to do the check in the loop. This requires more work, editing the schema, modifying the comment filter template, and the associated .pl file. It's a finer-grained solution, though. My preference is for the second solution. If either of these sound useful, I'd be happy to produce a patch. Best, -- chromatic |