diff options
author | ivan <ivan> | 2011-04-18 23:49:54 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-04-18 23:49:54 +0000 |
commit | 01f60974743197ac14e569c16c68a0c2ff3a5bd4 (patch) | |
tree | 140ae6bfc2a89a2b635c81859a74eff5587ef71a /rt/lib/RT/Users_Overlay.pm | |
parent | b5c4237a34aef94976bc343c8d9e138664fc3984 (diff) |
commiting rt 3.8.10 to HEAD
Diffstat (limited to 'rt/lib/RT/Users_Overlay.pm')
-rw-r--r-- | rt/lib/RT/Users_Overlay.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rt/lib/RT/Users_Overlay.pm b/rt/lib/RT/Users_Overlay.pm index 4d03b6056..16ec5ed87 100644 --- a/rt/lib/RT/Users_Overlay.pm +++ b/rt/lib/RT/Users_Overlay.pm @@ -406,6 +406,12 @@ sub WhoHaveRoleRight ); my @objects = $self->_GetEquivObjects( %args ); + + # RT::Principal->RolesWithRight only expects EquivObjects, so we need to + # fill it. At the very least it needs $args{Object}, which + # _GetEquivObjects above does for us. + unshift @{$args{'EquivObjects'}}, @objects; + my @roles = RT::Principal->RolesWithRight( %args ); unless ( @roles ) { $self->_AddSubClause( "WhichRole", "(main.id = 0)" ); |