[Rt-commit] r19002 - rt/3.999/trunk/lib/RT/Model
ruz at bestpractical.com
ruz at bestpractical.com
Tue Mar 31 14:28:08 EDT 2009
Author: ruz
Date: Tue Mar 31 14:28:06 2009
New Revision: 19002
Modified:
rt/3.999/trunk/lib/RT/Model/Principal.pm
Log:
* get rid of _get_principal_type_for_acl
Modified: rt/3.999/trunk/lib/RT/Model/Principal.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Model/Principal.pm (original)
+++ rt/3.999/trunk/lib/RT/Model/Principal.pm Tue Mar 31 14:28:06 2009
@@ -464,28 +464,6 @@
}
-
-
-=head2 _get_principal_type_for_acl
-
-Gets the principal type. if it's a user, it's a user. if it's a role group and it has a Type,
-return that. if it has no type, return group.
-
-=cut
-
-sub _get_principal_type_for_acl {
- my $self = shift;
- my $type;
- if ( $self->is_group && $self->object->domain =~ /Role$/ ) {
- $type = $self->object->type;
- } else {
- $type = $self->type;
- }
-
- return ($type);
-}
-
-
sub acl_equivalence_group { $_[0]->object->acl_equivalence_group }
More information about the Rt-commit
mailing list