Fix: Switch mytask-alltasks

This commit is contained in:
Laurent Destailleur 2010-06-07 17:39:19 +00:00
parent b6964b5617
commit f50c69f600

View File

@ -274,15 +274,11 @@ else
// Link to switch in "my task" / "all task" // Link to switch in "my task" / "all task"
print '<table width="100%"><tr><td align="right">'; print '<table width="100%"><tr><td align="right">';
if ($_REQUEST["mode"] == 'mine') if ($_REQUEST["mode"] == 'mine')
{
if ($user->rights->projet->all->lire)
{ {
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$project->id.'">'.$langs->trans("DoNotShowMyTasksOnly").'</a>'; print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$project->id.'">'.$langs->trans("DoNotShowMyTasksOnly").'</a>';
//print ' - '; //print ' - ';
//print $langs->trans("ShowMyTaskOnly"); //print $langs->trans("ShowMyTaskOnly");
} }
//else print '<a href="#">'.$langs->trans("DoNotShowMyTasksOnly").'</a>';
}
else else
{ {
//print $langs->trans("DoNotShowMyTaskOnly"); //print $langs->trans("DoNotShowMyTaskOnly");