# frozen_string_literal: true

module GobiertoAdmin
  module GobiertoDashboards
    class DashboardsController < GobiertoAdmin::BaseController
      layout false

      def modal; end
    end
  end
end

# frozen_string_literal: true

module GobiertoAdmin
  module GobiertoDashboards
    class DashboardsController < GobiertoAdmin::BaseController
      before_action { module_enabled!(current_site, "GobiertoDashboards") }
      before_action { module_allowed!(current_admin, "GobiertoDashboards") }
      before_action -> { module_allowed_action!(current_admin, current_admin_module, [:manage_dashboards, :view_dashboards]) }

      layout false

      def modal; end
    end
  end
end

Check permissions for dashboards modal action
Check permissions for dashboards modal action
