#NEWLINE# def has_perm( self , user_obj , perm , obj = None ) : #NEWLINE# #INDENT# if ( not user_obj . is_active ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( perm in self . get_team_permissions ( user_obj , obj ) )