projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hide the old typeset statements with a non-default (and not added on upgrade) ACL...
[freeside.git]
/
rt
/
lib
/
RT
/
Group.pm
diff --git
a/rt/lib/RT/Group.pm
b/rt/lib/RT/Group.pm
index
779c026
..
dc52957
100755
(executable)
--- a/
rt/lib/RT/Group.pm
+++ b/
rt/lib/RT/Group.pm
@@
-3,7
+3,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)
@@
-51,7
+51,7
@@
=head1 NAME
=head1 NAME
- RT::Group - RT
\
's group object
+ RT::Group - RT's group object
=head1 SYNOPSIS
=head1 SYNOPSIS
@@
-529,8
+529,9
@@
sub _ValidateUserDefinedName {
my $dupcheck = RT::Group->new(RT->SystemUser);
$dupcheck->LoadUserDefinedGroup($value);
my $dupcheck = RT::Group->new(RT->SystemUser);
$dupcheck->LoadUserDefinedGroup($value);
- return (0, $self->loc("Group name '[_1]' is already in use", $value))
- if $dupcheck->id;
+ if ( $dupcheck->id && ( !$self->id || $self->id != $dupcheck->id ) ) {
+ return ( 0, $self->loc( "Group name '[_1]' is already in use", $value ) );
+ }
return 1;
}
return 1;
}
@@
-1171,8
+1172,18
@@
sub CurrentUserHasRight {
}
}
+=head2 CurrentUserCanSee
+
+Always returns 1; unfortunately, for historical reasons, users have
+always been able to examine groups they have indirect access to, even if
+they do not have SeeGroup explicitly.
+=cut
+sub CurrentUserCanSee {
+ my $self = shift;
+ return 1;
+}
=head2 PrincipalObj
=head2 PrincipalObj