[Bps-public-commit] RT-Extension-Captcha branch, master, updated. 11f297853dc07b8825087e32bcb23f195f17b82b
Thomas Sibley
trs at bestpractical.com
Thu Dec 23 09:36:28 EST 2010
The branch, master has been updated
via 11f297853dc07b8825087e32bcb23f195f17b82b (commit)
from a1387ff96d5aaefdd81b2e3e92c73e3941239ff8 (commit)
Summary of changes:
lib/RT/Extension/Captcha.pm | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 11f297853dc07b8825087e32bcb23f195f17b82b
Author: Thomas Sibley <trs at bestpractical.com>
Date: Thu Dec 23 09:36:10 2010 -0500
Add the CAPTCHA rights to the Staff category for RT4
diff --git a/lib/RT/Extension/Captcha.pm b/lib/RT/Extension/Captcha.pm
index 3a37b3b..739b1b4 100644
--- a/lib/RT/Extension/Captcha.pm
+++ b/lib/RT/Extension/Captcha.pm
@@ -66,6 +66,11 @@ use RT::Queue;
$RT::Queue::RIGHTS->{'NoCaptchaOnCreate'} = "Don't ask user to solve a CAPTCHA on ticket create"; #loc_pair
$RT::Queue::RIGHTS->{'NoCaptchaOnUpdate'} = "Don't ask user to solve a CAPTCHA on ticket reply or comment"; #loc_pair
+if ($RT::Queue::RIGHT_CATEGORIES) {
+ $RT::Queue::RIGHT_CATEGORIES->{"NoCaptchaOn$_"} = 'Staff'
+ for qw(Create Update);
+}
+
use RT::ACE;
$RT::ACE::LOWERCASERIGHTNAMES{ lc $_ } = $_
foreach qw(NoCaptchaOnCreate NoCaptchaOnUpdate);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list