<?php

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

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

   10   => array('support_assign_tickets',                          1,  /*T*/'Assign unassigned tickets to any department'/*/T*/),
   11   => array('support_assign_tickets_from_unassigned',          1,  /*T*/'Assign themselves unassigned tickets'/*/T*/),
   12   => array('support_reassign_tickets_from_inside_dept',       1,  /*T*/'Assign themselves tickets in their departments'/*/T*/),
   13   => array('support_reassign_tickets_from_other_depts',       1,  /*T*/'Assign themselves tickets from other departments'/*/T*/),
   14   => array('support_reassign_tickets_to_own_depts',           1,  /*T*/'Assign their tickets to departments they are members in'/*/T*/),
   15   => array('support_reassign_tickets_to_other_depts',         1,  /*T*/'Assign their tickets to other departments they are not a member of'/*/T*/),
   16   => array('support_reassign_tickets_from_others_to_others',  1,  /*T*/'Assign tickets they don\'t own to any department'/*/T*/),


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

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