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

+4 -2
View File
@@ -28,8 +28,10 @@ Redmine::Plugin.register :redmine_qbo_reminders do
settings default: RedmineQboReminders::Settings::DEFAULTS.dup, partial: 'settings/appointment_reminders'
# Sending a reminder from the appointment page, and turning reminders on or off for a customer
permission :send_appointment_reminders, { appointment_reminders: [:send_now, :opt_out, :opt_in] }, global: true
# The Send now / Send again button on an appointment
permission :send_appointment_reminders, { appointment_reminders: [:send_now] }, global: true
# The Turn off / Turn on button on a customer
permission :manage_customer_reminders, { appointment_reminders: [:opt_out, :opt_in] }, global: true
end
RedmineQboReminders.setup