Apply User Permissions optional in script and query report, option to pass user in has_permission