<?php

// This array must always start on index 1.
$permissions = array(
// index=> array(permission, dependency, customer_allowed, description)
    1   => array('support_view',                                    0, true,   /*T*/'View open tickets'/*/T*/),
    2   => array('support_view_assigned_department_tickets',        1, false,  /*T*/'View tickets assigned to their departments'/*/T*/),
    3   => array('support_view_assigned_otherdepartment_tickets',   1, false,  /*T*/'View tickets assigned to other departments'/*/T*/),

    4   => array('support_reply_any_open_ticket',                   1, false,  /*T*/'Reply to any assigned ticket'/*/T*/),
    28  => array('support_view_closed_tickets',                     1, true,   /*T*/'View closed tickets'/*/T*/),
    5   => array('support_view_all_closed_tickets',                 1, false,  /*T*/'View all closed tickets'/*/T*/),
    6   => array('support_submit_ticket',                           1, true,   /*T*/'Submit ticket'/*/T*/),
    7   => array('support_reopen_ticket',                           1, true,   /*T*/'Reopen ticket'/*/T*/),
    8   => array('support_edit_ticket',                             1, false,  /*T*/'Edit ticket'/*/T*/),
    9   => array('support_delete_trouble_ticket',                   1, false,  /*T*/'Delete ticket'/*/T*/),

   10   => array('support_assign_tickets',                          1, false,  /*T*/'Assign tickets'/*/T*/),

   17   => array('support_show_departments',                        1, false,   /*T*/'Show departments'/*/T*/),
   18   => array('support_edit_departments',                        17, false,  /*T*/'Manage departments'/*/T*/),
   19   => array('support_show_escalations',                        1, false,   /*T*/'Show escalation rules'/*/T*/),
   20   => array('support_edit_escalations',                        19, false,  /*T*/'Manage escalation rules'/*/T*/),
   21   => array('support_show_emailroutings',                      1, false,  /*T*/'Show e-mail routing rules'/*/T*/),
   22   => array('support_edit_emailroutings',                      21, false, /*T*/'Manage e-mail routing rules'/*/T*/),
   23   => array('support_show_tickettypes',                        1, false,  /*T*/'View ticket types'/*/T*/),
   24   => array('support_edit_tickettypes',                        23, false, /*T*/'Manage ticket types'/*/T*/),

   25   => array('support_close_tickets',                           1, true,   /*T*/'Close tickets'/*/T*/),
   26   => array('support_view_rates',                              1, false,  /*T*/'View closed tickets service rates'/*/T*/),
   27   => array('support_view_eventlog',                           1, true,   /*T*/'View Event Log for Ticket events'/*/T*/),
   
   
);
?>
