Revelation7
24-09-04, 04:36 AM
This basically limits a user to see only his/her own tickets, unless he/she is an admin.
Couple of points to note:
1) This only works if you don't assign tickets to other people, a ticket must remain with the same owner through out its life cycle for this patch to work.
2) The function to check if this user is admin is in includes/main_function.php, superuser(), in there I checked a) the user type of "admin", or b) if user has access to all objects in permission. If this is not how you see it, change it.
Let me know if you have issues with this patch.
http://sourceforge.net/tracker/index.php?func=detail&aid=1033569&group_id=21656&atid=372485
Couple of points to note:
1) This only works if you don't assign tickets to other people, a ticket must remain with the same owner through out its life cycle for this patch to work.
2) The function to check if this user is admin is in includes/main_function.php, superuser(), in there I checked a) the user type of "admin", or b) if user has access to all objects in permission. If this is not how you see it, change it.
Let me know if you have issues with this patch.
http://sourceforge.net/tracker/index.php?func=detail&aid=1033569&group_id=21656&atid=372485