I have tried to remove the task logs for clients completely but with no success. The task log is gone if you look under the actual task, BUT if you are in the "View Project" mode they can still be seen under the tab "View Task". If you try to click on them you cannot open them and that seems ok. But the problem is that they can still be viewed.
I have changed the permissions so that they are set to deny for everything concerning task logs but this does not change anything.
I want my clients to be able to see tasks and possible even update them. BUT NOT to see anything considering task logs. Is that possible?
Line 395 and following of the file modules/projects/view.php
$canViewTask = $perms->checkModule('tasks', 'view');
if ($canViewTask) {
$tabBox->add( dPgetConfig('root_dir')."/modules/tasks/tasks", 'Tasks' );
$tabBox->add( dPgetConfig('root_dir')."/modules/tasks/tasks", 'Tasks (Inactive)' );
}
if ($perms->checkModule('forums', 'view'))
$tabBox->add( dPgetConfig('root_dir')."/modules/projects/vw_forums", 'Forums' );
//if ($perms->checkModule('files', 'view'))
// $tabBox->add( dPgetConfig('root_dir')."/modules/projects/vw_files", 'Files' );
if ($canViewTask) {
$tabBox->add( dPgetConfig('root_dir')."/modules/tasks/viewgantt", 'Gantt Chart' );
$tabBox->add( dPgetConfig('root_dir')."/modules/projects/vw_logs", 'Task Logs' );
}
The 395 line is giving view permission to the logs aswell as tasks and tasks gantt so lets make that block something like:
$canViewTask = $perms->checkModule('tasks', 'view');
$canViewLogs = $perms->checkModule('task_log', 'view');
if ($canViewTask) {
$tabBox->add( dPgetConfig('root_dir')."/modules/tasks/tasks", 'Tasks' );
$tabBox->add( dPgetConfig('root_dir')."/modules/tasks/tasks", 'Tasks (Inactive)' );
}
if ($perms->checkModule('forums', 'view'))
$tabBox->add( dPgetConfig('root_dir')."/modules/projects/vw_forums", 'Forums' );
//if ($perms->checkModule('files', 'view'))
// $tabBox->add( dPgetConfig('root_dir')."/modules/projects/vw_files", 'Files' );
if ($canViewTask) {
$tabBox->add( dPgetConfig('root_dir')."/modules/tasks/viewgantt", 'Gantt Chart' );
}
if ($canViewLogs) {
$tabBox->add( dPgetConfig('root_dir')."/modules/projects/vw_logs", 'Task Logs' );
}
Now only folks with view permission over the the tasklogs can view the the tasklogs tab on the projects view page...
Pedro A.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.