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
@@ -1,4 +1,6 @@
|
||||
<p>
|
||||
<% customer = context[:customer] %>
|
||||
<%= link_to l(:label_add_appointment), new_customer_appointment_path(customer_id: customer.id), target: :_blank, id: :appointment_link %>
|
||||
</p>
|
||||
<% if User.current.allowed_to?(:add_customer_appointments, nil, global: true) %>
|
||||
<p>
|
||||
<% customer = context[:customer] %>
|
||||
<%= link_to l(:label_add_appointment), new_customer_appointment_path(customer_id: customer.id), target: :_blank, id: :appointment_link %>
|
||||
</p>\
|
||||
<% end %>
|
||||
Reference in new issue
Block a user