projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.0.23
[freeside.git]
/
rt
/
lib
/
RT
/
Classes.pm
diff --git
a/rt/lib/RT/Classes.pm
b/rt/lib/RT/Classes.pm
index
37dc411
..
0175b2f
100644
(file)
--- a/
rt/lib/RT/Classes.pm
+++ b/
rt/lib/RT/Classes.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
5
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)
@@
-54,33
+54,29
@@
use base 'RT::SearchBuilder';
sub Table {'Classes'}
sub Table {'Classes'}
-
-=head2 Next
-
-Returns the next Object that this user can see.
+=head2 _Init
=cut
=cut
-
sub Nex
t {
+
sub _Ini
t {
my $self = shift;
my $self = shift;
+ $self->{'with_disabled_column'} = 1;
+ return ($self->SUPER::_Init(@_));
+ }
+=head2 AddRecord
- my $Object = $self->SUPER::Next();
- if ((defined($Object)) and (ref($Object))) {
- if ( $Object->CurrentUserHasRight('SeeClass') ) {
- return($Object);
- }
+Overrides the collection to ensure that only Classes the user can
+see are returned.
- #If the user doesn't have the right to show this Object
- else {
- return($self->Next());
- }
- }
- #if there never was any Object
- else {
- return(undef);
- }
+=cut
+
+sub AddRecord {
+ my $self = shift;
+ my ($record) = @_;
+ return unless $record->CurrentUserHasRight('SeeClass');
+ return $self->SUPER::AddRecord( $record );
}
sub ColumnMapClassName {
}
sub ColumnMapClassName {