remove unused atom auth for dashboards

This commit is contained in:
Alexander Meindl 2024-08-06 19:20:10 +02:00
parent b94e192a86
commit 3f98887c0c
2 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,6 @@ class DashboardsController < ApplicationController
before_action :find_dashboard, except: %i[index new create]
before_action :find_optional_project, only: %i[index new create]
accept_atom_auth :index, :show
accept_api_auth :index, :show, :create, :update, :destroy
rescue_from Query::StatementInvalid, with: :query_statement_invalid

View File

@ -222,15 +222,15 @@ module AdditionalsQueriesHelper
columns.each_with_index do |c, column_index|
value = csv_content(c, line).dup
if c.name == :id # ID
if options[:no_id_link].blank?
link = url_for controller: line.class.name.underscore.pluralize, action: 'show', id: line.id
worksheet.write line_index + 1, column_index, link, hyperlink_format, value
else
if options[:no_id_link]
# id without link
worksheet.write(line_index + 1,
column_index,
value,
workbook.add_format(xlsx_cell_format(:cell, value, line_index)))
else
link = url_for controller: line.class.name.underscore.pluralize, action: 'show', id: line.id
worksheet.write line_index + 1, column_index, link, hyperlink_format, value
end
elsif xlsx_hyperlink_cell? value
worksheet.write line_index + 1, column_index, value[0..254], hyperlink_format, value