Top menu opens this week; weeks run are for Run tech bonuses
The Tech bonuses top menu now goes to /tech_bonuses/current, which redirects to the week containing today. The index (week picker and weeks run) is limited to Run tech bonuses: View tech bonuses only covers a week's page, whose title links to the index only for those who can run the bonus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d35d408ac6
commit
67a0bc62aa
6 files changed
+28
-11
No files matched your search
@@ -29,12 +29,12 @@ Redmine::Plugin.register :redmine_qbo_bonus do
|
||||
|
||||
settings default: RedmineQboBonus::Settings::DEFAULTS.dup, partial: 'settings/qbo_bonus'
|
||||
|
||||
# Seeing the weeks' hours and bonuses (e.g. the Foreman), without running them or opening the credit memos
|
||||
permission :view_tech_bonuses, { tech_bonuses: [:index, :show] }, global: true
|
||||
# Previewing a week's bonus, creating and emailing its credit memos
|
||||
permission :run_tech_bonuses, { tech_bonuses: [:index, :show, :create, :resend, :pdf] }, global: true
|
||||
# Seeing a week's hours and bonuses (e.g. the Foreman), without the weeks run, running them or opening the credit memos
|
||||
permission :view_tech_bonuses, { tech_bonuses: [:current, :show] }, global: true
|
||||
# The weeks run, previewing a week's bonus, creating and emailing its credit memos
|
||||
permission :run_tech_bonuses, { tech_bonuses: [:index, :current, :show, :create, :resend, :pdf] }, global: true
|
||||
|
||||
menu :top_menu, :tech_bonuses, { controller: 'tech_bonuses', action: 'index' },
|
||||
menu :top_menu, :tech_bonuses, { controller: 'tech_bonuses', action: 'current' },
|
||||
caption: :label_tech_bonus_plural, after: :my_page,
|
||||
if: proc { RedmineQboBonus.visible? }
|
||||
|
||||
|
||||
Reference in new issue
Block a user