[Bps-public-commit] rt-extension-rightsdebugger branch, master, updated. 78481f4ec560f026b195fcc21ad0114513fd766b

Shawn Moore shawn at bestpractical.com
Thu Mar 9 17:25:29 EST 2017


The branch, master has been updated
       via  78481f4ec560f026b195fcc21ad0114513fd766b (commit)
      from  65986e1f5d43914fc9a07b501fa7b92b6b6ddb25 (commit)

Summary of changes:
 lib/RT/Extension/RightsDebugger.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 78481f4ec560f026b195fcc21ad0114513fd766b
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Thu Mar 9 22:15:33 2017 +0000

    Support cf:2 syntax

diff --git a/lib/RT/Extension/RightsDebugger.pm b/lib/RT/Extension/RightsDebugger.pm
index 895ee23..a2a4966 100644
--- a/lib/RT/Extension/RightsDebugger.pm
+++ b/lib/RT/Extension/RightsDebugger.pm
@@ -178,6 +178,9 @@ sub ObjectForSpec {
     elsif ($type =~ /^class$/i) {
         $record = RT::Class->new($self->CurrentUser);
     }
+    elsif ($type =~ /^cf|customfield$/i) {
+        $record = RT::CustomField->new($self->CurrentUser);
+    }
     elsif ($type =~ /^(g|group)$/i) {
         return $self->PrincipalForSpec($type, $identifier);
     }
@@ -340,7 +343,7 @@ sub Search {
         if (my ($type, $identifier) = $args{object} =~ m{
             ^
                 \s*
-                (t|ticket|q|queue|asset|catalog|a|article|class|g|group)
+                (t|ticket|q|queue|asset|catalog|a|article|class|g|group|cf|customfield)
                 \s*
                 [:#]
                 \s*

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list