#NEWLINE# @ require_permission ( 'list_alerts' ) #NEWLINE# def get( self ) : #NEWLINE# #INDENT# return [ alert . to_dict ( ) for alert in models . Alert . all ( groups = self . current_user . groups ) ]