mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
Implement global permissions for customer appointments and update views to check permissions before displaying actions
This commit is contained in:
1 parent
167e956457
commit
97ed852068
8 files changed
+70
-40
No files matched your search
@@ -53,6 +53,13 @@ end
|
||||
caption: 'Customer Calendar',
|
||||
after: :calendar,
|
||||
param: :project_id
|
||||
|
||||
# Global Permissions
|
||||
permission :view_customer_appointments, { customer_appointments: [:index, :show] }, global: true
|
||||
permission :add_customer_appointments, { customer_appointments: [:new, :create] }, global: true
|
||||
permission :edit_customer_appointments, { customer_appointments: [:edit, :update] }, global: true
|
||||
permission :delete_customer_appointments, { customer_appointments: [:destroy] }, global: true
|
||||
|
||||
end
|
||||
|
||||
Rails.configuration.to_prepare do
|
||||
|
||||
Reference in new issue
Block a user