From 7987eb3b907a8bb8b3413e3aa3557e50e17e5a64 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Mon, 30 Oct 2017 05:53:38 +0000 Subject: [PATCH] TicketModel > Ticket --- include/staff/ticket-view.inc.php | 2 +- scp/tasks.php | 2 +- scp/tickets.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php index b216b3f8b..a977ab2c6 100644 --- a/include/staff/ticket-view.inc.php +++ b/include/staff/ticket-view.inc.php @@ -315,7 +315,7 @@ if($ticket->isOverdue()) </ul> </div> <?php - if ($role->hasPerm(TicketModel::PERM_EDIT)) { + if ($role->hasPerm(Ticket::PERM_EDIT)) { $numCollaborators = $ticket->getThread()->getNumCollaborators(); if ($ticket->getThread()->getNumCollaborators()) $recipients = sprintf(__('%d'), diff --git a/scp/tasks.php b/scp/tasks.php index 8ba17864d..a918d0ecb 100644 --- a/scp/tasks.php +++ b/scp/tasks.php @@ -113,7 +113,7 @@ if($_POST && !$errors): switch(strtolower($_POST['do'])): case 'addcc': $errors = array(); - if (!$role->hasPerm(TicketModel::PERM_EDIT)) { + if (!$role->hasPerm(Ticket::PERM_EDIT)) { $errors['err']=__('Permission Denied. You are not allowed to add collaborators'); } elseif (!$_POST['user_id'] || !($user=User::lookup($_POST['user_id']))) { $errors['err'] = __('Unknown user selected'); diff --git a/scp/tickets.php b/scp/tickets.php index d9cc0d52e..fc4eb4b66 100644 --- a/scp/tickets.php +++ b/scp/tickets.php @@ -367,7 +367,7 @@ if($_POST && !$errors): } break; case 'addcc': - if (!$role->hasPerm(TicketModel::PERM_EDIT)) { + if (!$role->hasPerm(Ticket::PERM_EDIT)) { $errors['err']=__('Permission Denied. You are not allowed to add collaborators'); } elseif (!$_POST['user_id'] || !($user=User::lookup($_POST['user_id']))) { $errors['err'] = __('Unknown user selected'); @@ -382,7 +382,7 @@ if($_POST && !$errors): } break; case 'addbcc': - if (!$role->hasPerm(TicketModel::PERM_EDIT)) { + if (!$role->hasPerm(Ticket::PERM_EDIT)) { $errors['err']=__('Permission Denied. You are not allowed to add collaborators'); } elseif (!$_POST['user_id'] || !($user=User::lookup($_POST['user_id']))) { $errors['err'] = __('Unknown user selected'); -- GitLab