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
@@ -5,8 +5,10 @@
|
||||
<i class="fa-regular fa-calendar-days"></i> <%= l(:button_calendar) %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to new_customer_appointment_path do %>
|
||||
<i class="fa-regular fa-pen-to-square"></i> <%= l(:button_add) %>
|
||||
<% if User.current.allowed_to?(:add_customer_appointments, nil, global: true) %>
|
||||
<%= link_to new_customer_appointment_path do %>
|
||||
<i class="fa-regular fa-pen-to-square"></i> <%= l(:button_add) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user