#NEWLINE# def get_log_entries_by_permission( session , permission , limit = 20 ) : #NEWLINE# #INDENT# 'For a given permission, return the audit logs that pertain.\n\n    Args:\n        session(models.base.session.Session): database session\n        permission_name(Permission): permission in question\n        limit(int): number of results to return\n    ' #NEWLINE# return AuditLog . get_entries ( session , on_permission_id = permission . id , limit = limit )