… sondern nur die Action nicht anzeigen.
Sonst kann man gar keine Angebote/Aufträge erstellen/öffnen, wenn man das
"productivity"-Recht nicht hat.
Dank an Sven.
t8('Follow-Up'),
call => [ 'kivi.Order.follow_up_window' ],
disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef,
t8('Follow-Up'),
call => [ 'kivi.Order.follow_up_window' ],
disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef,
- only_if => $::auth->assert('productivity'),
+ only_if => $::auth->assert('productivity', 1),
],
], # end of combobox "more"
);
],
], # end of combobox "more"
);