Skip to content

Commit

Permalink
Prepares additional permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kastl <[email protected]>
  • Loading branch information
dkastl committed Dec 1, 2023
1 parent e609efb commit 91057fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
en:
project_module_print_templates: "Print Templates"
permission_view_print_templates: "View print templates"
permission_edit_print_templates: "Modify print templates"
permission_admin_print_templates: "Manage print templates"

label_print_template: "Print template"
label_print_templates_plural: "Print templates"
label_print_templates_new: "New print template"
Expand Down
5 changes: 5 additions & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
ja:
project_module_print_templates: "Print Templates"
permission_view_print_templates: "View print templates"
permission_edit_print_templates: "Modify print templates"
permission_admin_print_templates: "Manage print templates"

label_print_template: "Print template"
label_print_templates_plural: "Print templates"
label_print_templates_new: "New print template"
Expand Down
2 changes: 2 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

project_module :print_templates do
permission :view_print_templates, {}, :require => :loggedin
permission :edit_print_templates, {}, :require => :member
permission :admin_print_templates, {}, :require => :member
end

menu :admin_menu, :print_templates, { controller: 'print_templates', action: 'index' },
Expand Down

0 comments on commit 91057fc

Please sign in to comment.