Indefero

Indefero Commit Details


Date:2009-01-06 15:04:48 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:a30a62d48f54d953663a9b5c1e82f54a139212ae
Parents: 6e5c8b5bb35a720314ee84f590aa06595734d40f
Message:Fixed issue 97, project created as private is not private.

It was not a security issue, just a display issue.
Changes:

File differences

src/IDF/Views/Project.php
416416
417417
418418
419
419
420
421
420422
421423
422424
......
427429
428430
429431
430
431
432
433
432434
433435
434436
......
438440
439441
440442
441
442
443
443
444444
445445
446446
$form = new IDF_Form_TabsConf($request->POST, $extra);
if ($form->isValid()) {
foreach ($form->cleaned_data as $key=>$val) {
$request->conf->setVal($key, $val);
if (!in_array($key, array('private_project', 'authorized_users'))) {
$request->conf->setVal($key, $val);
}
}
$form->save(); // Save the authorized users.
$request->user->setMessage(__('The project tabs access rights have been saved.'));
} else {
$params = array();
$keys = array('downloads_access_rights', 'source_access_rights',
'issues_access_rights', 'private_project',
'review_access_rights', 'wiki_access_rights');
'issues_access_rights', 'review_access_rights',
'wiki_access_rights');
foreach ($keys as $key) {
$_val = $request->conf->getVal($key, false);
if ($_val !== false) {
// Add the authorized users.
$md = $prj->getMembershipData('string');
$params['authorized_users'] = $md['authorized'];
if (count($params) == 0) {
$params = null; //Nothing in the db, so new form.
}
$params['private_project'] = $prj->private;
$form = new IDF_Form_TabsConf($params, $extra);
}
return Pluf_Shortcuts_RenderToResponse('idf/admin/tabs.html',

Archive Download the corresponding diff file

Page rendered in 0.07847s using 14 queries.