mirror of https://github.com/docusealco/docuseal
Post-sync remediation: - Restore WaboSign 'W' logo SVG (was reverted to DocuSeal abstract shape) - Restore SMS config form with BulkVS, Twilio, VoIP.ms, SignalWire providers - Add AGPL §7(b) upstream attribution to footer (DocuSeal link alongside WaboSign) - Remove Console feature entirely (controller deleted, routes/constants removed) - Remove all Pro/Plan/Upgrade gating — features now freely available - Make all user roles selectable (editor/viewer no longer disabled) - Remove upgrade button from navbar, plans link from settings nav - Remove console redirect from sessions controller - Add _logo.html.erb to rebrand-sync DENY_PATHS to prevent future overwritespull/687/head
parent
fe661d961d
commit
738d531467
@ -1,26 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ConsoleRedirectController < ApplicationController
|
||||
skip_before_action :authenticate_user!
|
||||
skip_authorization_check
|
||||
|
||||
def index
|
||||
if request.path == '/upgrade'
|
||||
params[:redir] = Wabosign.multitenant? ? "#{Wabosign::CONSOLE_URL}/plans" : "#{Wabosign::CONSOLE_URL}/on_premises"
|
||||
end
|
||||
|
||||
params[:redir] = "#{Wabosign::CONSOLE_URL}/manage" if request.path == '/manage'
|
||||
|
||||
return redirect_to(new_user_session_path({ redir: params[:redir] }.compact)) if true_user.blank?
|
||||
|
||||
auth = JsonWebToken.encode(uuid: true_user.uuid,
|
||||
scope: :console,
|
||||
exp: 1.minute.from_now.to_i)
|
||||
|
||||
redir_uri = Addressable::URI.parse(params[:redir])
|
||||
path = redir_uri.path if params[:redir].to_s.starts_with?(Wabosign::CONSOLE_URL)
|
||||
|
||||
redirect_to "#{Wabosign::CONSOLE_URL}#{path}?#{{ **redir_uri&.query_values, 'auth' => auth }.to_query}",
|
||||
allow_other_host: true
|
||||
end
|
||||
end
|
||||
@ -1,15 +1 @@
|
||||
<div class="alert my-4">
|
||||
<%= svg_icon('info_circle', class: 'w-6 h-6') %>
|
||||
<div>
|
||||
<p class="font-bold">
|
||||
<%= t('unlock_with_docuseal_pro') %>
|
||||
</p>
|
||||
<p>
|
||||
<%= t('send_automatic_email_reminders_to_your_recipients') %>
|
||||
<br>
|
||||
<a class="link font-medium" target="_blank" href="<%= Wabosign.multitenant? ? console_redirect_index_path(redir: "#{Wabosign::CONSOLE_URL}/plans") : "#{Wabosign::CLOUD_URL}/sign_up?#{{ redir: "#{Wabosign::CONSOLE_URL}/on_premises" }.to_query}" %>" data-turbo="false">
|
||||
<%= t('learn_more') %>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<%# Reminders are freely available. No Pro gate needed. %>
|
||||
|
||||
@ -1,15 +1,21 @@
|
||||
<div class="alert my-4">
|
||||
<%= svg_icon('info_circle', class: 'w-6 h-6') %>
|
||||
<div>
|
||||
<p class="font-bold">
|
||||
<%= t('unlock_with_docuseal_pro') %>
|
||||
</p>
|
||||
<p>
|
||||
<%= t('display_your_company_name_and_logo_when_signing_documents') %>
|
||||
<br>
|
||||
<a class="link font-medium" target="_blank" href="<%= Wabosign.multitenant? ? console_redirect_index_path(redir: "#{Wabosign::CONSOLE_URL}/plans") : "#{Wabosign::CLOUD_URL}/sign_up?#{{ redir: "#{Wabosign::CONSOLE_URL}/on_premises" }.to_query}" %>" data-turbo="false">
|
||||
<%= t('learn_more') %>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="my-4">
|
||||
<% if current_account.logo.attached? %>
|
||||
<div class="flex items-center space-x-4 mb-4">
|
||||
<%= image_tag current_account.logo, class: 'w-16 h-16 object-contain rounded-lg', alt: 'Company logo' %>
|
||||
<div>
|
||||
<p class="font-medium"><%= current_account.logo.filename %></p>
|
||||
<%= button_to t('remove'), account_logo_path, method: :delete, class: 'btn btn-sm btn-outline btn-error mt-1', data: { turbo: false } %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= form_with url: account_logo_path, local: true, class: 'space-y-3' do |f| %>
|
||||
<div class="form-control">
|
||||
<%= f.label :logo, 'Upload logo', class: 'label' %>
|
||||
<%= f.file_field :logo, accept: 'image/png,image/jpeg,image/svg+xml', class: 'file-input file-input-bordered w-full' %>
|
||||
<span class="label-text-alt mt-1 opacity-70">PNG, JPEG, or SVG. Max 2 MB.</span>
|
||||
</div>
|
||||
<div class="form-control">
|
||||
<%= f.submit 'Upload', class: 'base-button' %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 406 B |
@ -1,8 +1,3 @@
|
||||
<% if signed_in? && current_user != true_user %>
|
||||
<%= render 'shared/test_alert' %>
|
||||
<% elsif request.path.starts_with?('/settings') %>
|
||||
<%= link_to "#{Wabosign::CLOUD_URL}/sign_up?#{{ redir: "#{Wabosign::CONSOLE_URL}/on_premises" }.to_query}", class: 'hidden md:inline-flex btn btn-warning btn-sm', data: { prefetch: false } do %>
|
||||
<%= t('upgrade') %>
|
||||
<% end %>
|
||||
<span class="hidden md:inline-flex h-3 border-r border-base-content"></span>
|
||||
<% end %>
|
||||
|
||||
@ -1,15 +1 @@
|
||||
<div class="alert">
|
||||
<%= svg_icon('info_circle', class: 'w-6 h-6') %>
|
||||
<div>
|
||||
<p class="font-bold">
|
||||
<%= t('send_signature_requests_via_sms') %>
|
||||
</p>
|
||||
<p class="text-gray-700">
|
||||
<%= t('unlock_with_docuseal_pro') %>
|
||||
<br>
|
||||
<a class="link font-medium" target="_blank" href="<%= Wabosign.multitenant? ? console_redirect_index_path(redir: "#{Wabosign::CONSOLE_URL}/plans") : "#{Wabosign::CLOUD_URL}/sign_up?#{{ redir: "#{Wabosign::CONSOLE_URL}/on_premises" }.to_query}" %>" data-turbo="false">
|
||||
<%= t('learn_more') %>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<%# SMS is freely available. Configure via the SMS form above. %>
|
||||
|
||||
@ -1,15 +1 @@
|
||||
<div class="alert">
|
||||
<%= svg_icon('info_circle', class: 'w-6 h-6') %>
|
||||
<div>
|
||||
<p class="font-bold">
|
||||
<%= t('bulk_send_from_excel_xlsx_or_csv') %>
|
||||
</p>
|
||||
<p class="text-gray-700">
|
||||
<%= t('unlock_with_docuseal_pro') %>
|
||||
<br>
|
||||
<a class="link font-medium" target="_blank" href="<%= Wabosign.multitenant? ? console_redirect_index_path(redir: "#{Wabosign::CONSOLE_URL}/plans") : "#{Wabosign::CLOUD_URL}/sign_up?#{{ redir: "#{Wabosign::CONSOLE_URL}/on_premises" }.to_query}" %>" data-turbo="false">
|
||||
<%= t('learn_more') %>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<%# Bulk send is freely available. No Pro gate needed. %>
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
<div class="mt-2 mb-1">
|
||||
<div class="tooltip w-full" data-tip="<%= t('unlock_with_docuseal_pro') %>">
|
||||
<%= link_to submitter.sent_at? ? t('re_send_sms') : t('send_sms'), Wabosign.multitenant? ? console_redirect_index_path(redir: "#{Wabosign::CONSOLE_URL}/plans") : "#{Wabosign::CLOUD_URL}/sign_up?#{{ redir: "#{Wabosign::CONSOLE_URL}/on_premises" }.to_query}", class: 'btn btn-sm btn-primary text-gray-400 w-full' %>
|
||||
</div>
|
||||
<%= button_to submitter.sent_at? ? t('re_send_sms') : t('send_sms'), submitter_send_sms_index_path(submitter), class: 'btn btn-sm btn-primary w-full' %>
|
||||
</div>
|
||||
|
||||
@ -1,15 +1 @@
|
||||
<div class="alert">
|
||||
<%= svg_icon('info_circle', class: 'w-6 h-6') %>
|
||||
<div>
|
||||
<p class="font-bold">
|
||||
<%= t('api_and_embedding') %>
|
||||
</p>
|
||||
<p class="text-gray-700">
|
||||
<%= t('unlock_with_docuseal_pro') %>
|
||||
<br>
|
||||
<a class="link font-medium" target="_blank" href="<%= Wabosign.multitenant? ? console_redirect_index_path(redir: "#{Wabosign::CONSOLE_URL}/plans") : "#{Wabosign::CLOUD_URL}/sign_up?#{{ redir: "#{Wabosign::CONSOLE_URL}/on_premises" }.to_query}" %>" data-turbo="false">
|
||||
<%= t('learn_more') %>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<%# Embedding is freely available. No Pro gate needed. %>
|
||||
|
||||
Loading…
Reference in new issue