Indefero

Indefero Commit Details


Date:2012-05-11 16:25:06 (12 years 7 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:bcd515eed5d9fc3e2267ba0260a5dc7b41bed82a
Parents: 0826dab5752ea808e0ea403b786567c1439b5b23
Message:Do not display all project to a user if he has no rights for _any_ project of the forge, but actually hide all... thanks to René Klomp for this finding!

Changes:

File differences

NEWS.mdtext
1
2
3
4
5
6
7
8
9
110
211
312
# InDefero 1.3.3 - xxx xxx xx xx:xx 2012 UTC
## Bugfixes
- If an anonymous or authenticated user had no access
to any project in a forge, all projects were listed
for him (but still no one was actually accessible).
This has been fixed.
# InDefero 1.3.2 - Wed May 09 20:05 2012 UTC
## Bugfixes
src/IDF/Views.php
443443
444444
445445
446
447
446
447
448448
449449
450
451
450452
451453
452454
......
470472
471473
472474
473
474
475
476
475477
476478
479
480
477481
478482
479483
}
$projectIds = self::getUserVisibleProjectIds($user);
if (count($projectIds) > 0) {
$sql->SAnd(new Pluf_SQL(sprintf($db->pfx.'idf_projects.id IN (%s)', implode(', ', $projectIds))));
if (count($projectIds) == 0) {
return new ArrayObject();
}
$sql->SAnd(new Pluf_SQL(sprintf($db->pfx.'idf_projects.id IN (%s)', implode(', ', $projectIds))));
$orderTypes = array(
'name' => 'name ASC',
'activity' => 'value DESC, name ASC',
$sql = new Pluf_SQL('project IS NULL');
$projectIds = self::getUserVisibleProjectIds($user);
if (count($projectIds) > 0) {
$sql->SAnd(new Pluf_SQL(sprintf('idf_project_id IN (%s)', implode(', ', $projectIds))));
if (count($projectIds) == 0) {
return new ArrayObject();
}
$sql->SAnd(new Pluf_SQL(sprintf('idf_project_id IN (%s)', implode(', ', $projectIds))));
$tagList = Pluf::factory('IDF_Tag')->getList(array(
'filter' => $sql->gen(),
'view' => 'join_projects',

Archive Download the corresponding diff file

Page rendered in 0.07998s using 13 queries.