Closed (fixed)
Project:
Jobtrack
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 16:12 UTC
Updated:
18 Mar 2009 at 21:50 UTC
Hopefully this will be easy to implement but anyone can see the job track tickets, if they know the URL.
e.g. http://www.numediaadvantage.co.uk/ticket/6/93
Thanks,
David
P.S. Thanks for the module - so far it looks great!
Comments
Comment #1
dubs commentedI have some code here which fixes this problem - I don't know if this fits into your module well, but here it is: -
Comment #2
jeremy commentedThanks, you were on the right track but I think this is best implemented in jobtrack_access(). Fix committed.
Comment #3
liliplanet commentedHi,
Thank you for this wonderful module. I applied the fix, but still 'View recent tickets' appears on the profile page for all users (when it should only be for moderators). The permissions are correct.
What I've done as a temporary fix added :
to user-profile.tpl.php
Is there perhaps something I can add to template.php to remove tickets from the user pages please. (using content_profile)
Look forward to any reply.
Lilian
Comment #4
jeremy commentedGiving this a little thought, I agree that a user's tickets should not be visible on their profile page unless you have "adminsiter jobtrack" permission. Otherwise a client could see all of an admin's tickets, which is clearly not a good thing.
Fix committed