If any one needs a read only user i mean to avoid reply or post note you can do the following:

in class.ticket.php

search for:

function postResponse($msgid,$response,$signature='none',$attachment=false,$canalert=true){

global $thisuser,$cfg;

if(!$thisuser || !$thisuser->getId() || !$thisuser->isStaff()) //just incase

return 0;

and replace it with:

function postResponse($msgid,$response,$signature='none',$attachment=false,$canalert=true){

global $thisuser,$cfg;

if(!$thisuser || !$thisuser->getId() || !$thisuser->isStaff() || $thisuser->getId()=="33") //just incase + Read only user by Ozkr

return 0;

then search:

function postNote($title,$note,$alert=true,$poster='') {

global $thisuser,$cfg;

add after that:

if($thisuser->getId()=="33") //Read Only User by Ozkr

return 0;

remember to replace the number 33 with the id of the user you want to avoid posting. You can search the id in your DB or with an echo.

hope this can help you.

2 months later

Sorry for the bump, by chance I found this:

How to Create 3 New Permissions (Can Post Reply, Can Post Internal Notes, and Can Assign Tickets) into osTicket 1.6 ST

Awesome!

http://www.openscriptsolution.com/2012/01/20/how-to-create-3-new-permissions-can-post-reply-can-post-internal-notes-and-can-assign-tickets-into-osticket-1-6-st(http://www.openscriptsolution.com/2012/01/20/how-to-create-3-new-permissions-can-post-reply-can-post-internal-notes-and-can-assign-tickets-into-osticket-1-6-st)

4 days later
Write a Reply...