shawng
14-01-06, 04:46 PM
Well I am not going to introduce myself as a newbie with a problem. Instead I chose to introduce myself as a newbie who has figured out a simple solution to a common problem.
Ok well, it might not be the best way to do this. But it works, and I think I covered everything that I need to do with it.
Let me start off by explaining what I needed to do. I wanted my projects / task to allow normal users to add there logs of hours and comments to the projects, but I did not want them to be able to edit any logs once they ware added to the system or edit the task it self.
So after shifting around the forums and the DOT Project task module, I located a few areas of interest. I figured that since the only people who have the delet permission on a task are the people who manage the task, not the people who work on the task, they all have edit permission.
So what i did is by editing a few module calls, I managed to change the permission of the task. I made the delete permission on a task allow a user to edit and delete task and logs. I made the edit permission deny the user from editing the task and deny the user from editing the logs on the task, but the user may still add a hour log to the task.
So here the code.
http://www.nemesisstudios.com/public/nse-taskmod.rar
just unzip them into your module/task directory, be carfull if you have changed anything. this was edited from the 2.0.1 version of dot project.
hope this helps out someone.. it helped me.
Ok well, it might not be the best way to do this. But it works, and I think I covered everything that I need to do with it.
Let me start off by explaining what I needed to do. I wanted my projects / task to allow normal users to add there logs of hours and comments to the projects, but I did not want them to be able to edit any logs once they ware added to the system or edit the task it self.
So after shifting around the forums and the DOT Project task module, I located a few areas of interest. I figured that since the only people who have the delet permission on a task are the people who manage the task, not the people who work on the task, they all have edit permission.
So what i did is by editing a few module calls, I managed to change the permission of the task. I made the delete permission on a task allow a user to edit and delete task and logs. I made the edit permission deny the user from editing the task and deny the user from editing the logs on the task, but the user may still add a hour log to the task.
So here the code.
http://www.nemesisstudios.com/public/nse-taskmod.rar
just unzip them into your module/task directory, be carfull if you have changed anything. this was edited from the 2.0.1 version of dot project.
hope this helps out someone.. it helped me.