#NEWLINE# def _apply_filters( self , query ) : #NEWLINE# #INDENT# permissions = get_app_instance ( self ) . get_permissions ( ) #NEWLINE# user_information = get_app_instance ( self ) . get_user_information ( ) #NEWLINE# user = self . session . query ( model . DbUser ) . filter_by ( login = user_information . login ) . one ( ) #NEWLINE# return query . filter_by ( user = user )