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

Shawn Moore shawn at bestpractical.com
Thu Mar 16 14:38:39 EDT 2017


The branch, master has been updated
       via  d96cab0df9040db7f9e676f4cca9ddcb6b619cc2 (commit)
      from  43f41a34d137b25cb71927352e07b564586f9fc5 (commit)

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

- Log -----------------------------------------------------------------
commit d96cab0df9040db7f9e676f4cca9ddcb6b619cc2
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Thu Mar 16 18:38:31 2017 +0000

    Need to pass an access type to _Accessible

diff --git a/lib/RT/Extension/RightsDebugger.pm b/lib/RT/Extension/RightsDebugger.pm
index 9928ab5..3090a0c 100644
--- a/lib/RT/Extension/RightsDebugger.pm
+++ b/lib/RT/Extension/RightsDebugger.pm
@@ -710,7 +710,7 @@ sub DisabledForRecord {
     my $self = shift;
     my $record = shift;
 
-    if ($record->can('Disabled') || $record->_Accessible('Disabled')) {
+    if ($record->can('Disabled') || $record->_Accessible('Disabled', 'read')) {
         return $record->Disabled;
     }
 

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


More information about the Bps-public-commit mailing list