I've encountered the following problem with a user having "Project Leader" profile:
when checking the "projects" menu, even with the checkbox "show closed projects" enabled, the closed projects are not visible.
Using an profile with admin privileges, there is no issue.
Of course, I'm thinking this might be caused by some change made on the code within my organization, but I just wanted to make sure - is this behaviour correct for everyone else ? If it is, no need to worry about the following part of this message!
In case this is a problem for anyone else, here's my draft of a fix:
Warning: Spoiler!
I've managed to pinpoint the problem to jsonQuery.php:
if ($objectClass=='Project' and $accessRightRead!='ALL') {
$accessRightRead='ALL';
$queryWhere.= ($queryWhere=='')?'':' and ';
$queryWhere.= '(' . $table . ".id in " . transformListIntoInClause($_SESSION['user']->getVisibleProjects()) ;
if ($objectClass=='Project') {
$queryWhere.= " or codeType='TMP' ";
}
$queryWhere.= ')';
}
This section is only parsed for a user who is not admin, and in the function getVisibleProjects() there is a call to getRecursiveSubProjectsFlatList(true).
With that 'true' parameter, the closed projects are not listed.
If using 'false' parameter, I do get correct behaviour.
But since this function is called in many different contexts, I'm not sure that will not introduce regressions, still need to test some more. Perhaps I'll add a parameter
to getVisibleProjects() to control this.
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Cookies settings
×
Functional Cookies
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Please login to see yours activities!
Other cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.