Separate permission for turning customer reminders off; fix the Compose recipe

- Send appointment reminders now covers only Send now / Send again; the new
  "Turn appointment reminders off/on for customers" permission covers the
  customer page's button
- README's Compose service runs the task through the image's entrypoint, which
  installs the plugins' gems first (running bundle exec rake directly failed
  with Bundler::GemNotFound, since the Redmine container installs them at start)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
Claude committed 2026-11-01 13:35:01 -05:00
1 parent 749b5eeb25
commit acad2614c7
4 files changed
+18 -13

No files matched your search

@@ -6,7 +6,7 @@
<i class="fa-regular fa-envelope"></i>
<strong><%= l(:label_appointment_reminders) %>:</strong>
<%= off ? l(:text_customer_reminders_off) : l(:text_customer_reminders_on) %>
<% if User.current.allowed_to?(:send_appointment_reminders, nil, global: true) %>
<% if User.current.allowed_to?(:manage_customer_reminders, nil, global: true) %>
<%= button_to (off ? l(:button_reminders_on) : l(:button_reminders_off)),
(off ? customer_reminders_on_path(customer) : customer_reminders_off_path(customer)),
method: :post, form_class: 'customer-reminders-toggle' %>