[Rt-commit] r19000 - rt/3.999/trunk/lib/RT/Model

ruz at bestpractical.com ruz at bestpractical.com
Tue Mar 31 14:07:03 EDT 2009


Author: ruz
Date: Tue Mar 31 14:07:02 2009
New Revision: 19000

Modified:
   rt/3.999/trunk/lib/RT/Model/Principal.pm

Log:
* get rid of passing type argument into ACE->create method, it's
  better to ask for type later there from the principal

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:07:02 2009
@@ -151,15 +151,9 @@
 
     #ACL check handled in ACE.pm
     my $ace = RT::Model::ACE->new( current_user => RT->system_user );
-
-    my $type = $self->_get_principal_type_for_acl();
-
-    # If it's a user, we really want to grant the right to their
-    # user equivalence group
     return $ace->create(
         right_name => $args{'right'},
         object     => $args{'object'},
-        type       => $type,
         principal  => $self,
     );
 }


More information about the Rt-commit mailing list