From 6946a89d278f64b893cde9e175a592e81d02c825 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Mon, 8 Dec 2014 18:55:53 +0000
Subject: [PATCH] roles : Implement role-based access system-wide

---
 scp/tickets.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scp/tickets.php b/scp/tickets.php
index ec7a3600a..f5019127b 100644
--- a/scp/tickets.php
+++ b/scp/tickets.php
@@ -58,7 +58,7 @@ if($_POST && !$errors):
         //More coffee please.
         $errors=array();
         $lock=$ticket->getLock(); //Ticket lock if any
-        $role = $thisstaff->getRole($ticket->getDeptId);
+        $role = $thisstaff->getRole($ticket->getDeptId());
         switch(strtolower($_POST['a'])):
         case 'reply':
             if(!$role || !$role->canPostReply())
-- 
GitLab