projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket #32285 Password reset login link not skinned
[freeside.git]
/
rt
/
lib
/
RT
/
Attachments.pm
diff --git
a/rt/lib/RT/Attachments.pm
b/rt/lib/RT/Attachments.pm
index
c640b20
..
7f6f258
100755
(executable)
--- a/
rt/lib/RT/Attachments.pm
+++ b/
rt/lib/RT/Attachments.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-227,15
+227,12
@@
sub Next {
my $Attachment = $self->SUPER::Next;
return $Attachment unless $Attachment;
my $Attachment = $self->SUPER::Next;
return $Attachment unless $Attachment;
- my $txn = $Attachment->TransactionObj;
- if ( $txn->__Value('Type') eq 'Comment' ) {
- return $Attachment if $txn->CurrentUserHasRight('ShowTicketComments');
- } elsif ( $txn->CurrentUserHasRight('ShowTicket') ) {
+ if ( $Attachment->TransactionObj->CurrentUserCanSee ) {
return $Attachment;
return $Attachment;
+ } else {
+ # If the user doesn't have the right to show this ticket
+ return $self->Next;
}
}
-
- # If the user doesn't have the right to show this ticket
- return $self->Next;
}
}