A user with a role granting the Manage Trigger permission can create and update triggers.
Actual behavior:
User is able to list existing triggers but clicking on one does not open it for editing. Instead, errors are generated in the console while noting appears to happen for the user.
I’m not familiar with Zammad’s internals enough to know for sure but it looks like from the browser console and production log on the server it might be related to time zone permissions. Here is what I think is a relevant bit from the server production log:
I, [2024-06-24T15:52:04.927738#1497-150120] INFO – : Started GET “/api/v1/calendars/timezones?=1719258700908" for 10.180.133.54 at 2024-06-24 15:52:04 -0400
I, [2024-06-24T15:52:04.931998#1495-957520] INFO – : Started GET "/api/v1/triggers?full=true&page=1&per_page=150&sort_by=name,%20id&order_by=ASC,%20ASC&=1719258700909” for 10.180.133.54 at 2024-06-24 15:52:04 -0400
I, [2024-06-24T15:52:04.934068#1497-150120] INFO – : Processing by CalendarsController#timezones as JSON
I, [2024-06-24T15:52:04.934117#1497-150120] INFO – : Parameters: {“"=>“1719258700908”}
I, [2024-06-24T15:52:04.936125#1495-957520] INFO – : Processing by TriggersController#index as JSON
I, [2024-06-24T15:52:04.936189#1495-957520] INFO – : Parameters: {“full”=>“true”, “page”=>“1”, “per_page”=>“150”, “sort_by”=>“name, id”, “order_by”=>“ASC, ASC”, "”=>“1719258700909”}
I, [2024-06-24T15:52:04.939997#1497-150120] INFO – : not allowed to timezones? this CalendarsController (Pundit::NotAuthorizedError)
app/controllers/application_controller/authorizes.rb:10:in authorize!' app/controllers/application_controller/authenticates.rb:143:in authenticate_and_authorize!’
I, [2024-06-24T15:52:04.940432#1497-150120] INFO – : Not authorized (user)! (Exceptions::Forbidden)
app/models/user.rb:459:in permissions!' lib/user_context.rb:33:in permissions!’
app/policies/controllers/application_controller_policy.rb:25:in method_missing' app/controllers/application_controller/authorizes.rb:10:in authorize!’
app/controllers/application_controller/authenticates.rb:143:in `authenticate_and_authorize!’
I, [2024-06-24T15:52:04.941166#1497-150120] INFO – : Completed 403 Forbidden in 7ms (Views: 0.1ms | ActiveRecord: 2.0ms | Allocations: 3800)
I, [2024-06-24T15:52:05.188650#1495-957520] INFO – : Completed 200 OK in 252ms (Views: 94.9ms | ActiveRecord: 20.7ms | Allocations: 108488)
I, [2024-06-24T15:52:05.260524#1495-149080] INFO – : Started GET “/api/v1/triggers?full=true&page=1&per_page=150&sort_by=name,%20id&order_by=ASC,%20ASC&=1719258700910" for 10.180.133.54 at 2024-06-24 15:52:05 -0400
I, [2024-06-24T15:52:05.268371#1495-149080] INFO – : Processing by TriggersController#index as JSON
I, [2024-06-24T15:52:05.268426#1495-149080] INFO – : Parameters: {“full”=>“true”, “page”=>“1”, “per_page”=>“150”, “sort_by”=>“name, id”, “order_by”=>“ASC, ASC”, "”=>“1719258700910”}
I, [2024-06-24T15:52:05.525527#1495-149080] INFO – : Completed 200 OK in 256ms (Views: 25.2ms | ActiveRecord: 19.6ms | Allocations: 107714)
I, [2024-06-24T15:52:07.357998#1501-1102580] INFO – : Started GET “/api/v1/settings/?full=true&=1719258700911" for 10.180.133.54 at 2024-06-24 15:52:07 -0400
I, [2024-06-24T15:52:07.364458#1501-1102580] INFO – : Processing by SettingsController#index as JSON
I, [2024-06-24T15:52:07.364519#1501-1102580] INFO – : Parameters: {“full”=>“true”, "”=>“1719258700911”}
I, [2024-06-24T15:52:07.469014#1501-1102580] INFO – : Completed 200 OK in 104ms (Views: 28.8ms | ActiveRecord: 18.6ms | Allocations: 66266)