OTRS: hide -Move- dropdown with ACL

If you want to disable ticket move action for tickets in some states you can use ACL rules. Below you can see an example how to block movement of ticket if ticket is closed.

[Kernel/Config.pm]
        
# Ticket ACL - Disable move for closed
$Self->{TicketAcl}->{'ACL-dont-move'} = {
 # match properties
 Properties => {
  # all closed tickets
  Ticket => {
   State => ['closed', 'closed successful', 'closed unsuccessful', ], 
  },
  
  #disable on AgentTicketZoom page only
  Frontend => {
 Action => [
  'AgentTicketZoom',
 ],
  },
 },

# return possible options (white list)
 Possible => {
  # shouldn't be moved (0)
  Action => {
   AgentTicketMove =>  0,
  },
 }, 

};

No comments:

Asterisk AST_SORCERY function

 AST_SORCERY gets a field from a sorcery object. Sorcery is always created for PJSIP aors, endpoints and identifies in asterisk. It allows y...