summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-08-14 11:12:45 -0400
committerEudyptula <eitan@mosenkis.net>2009-08-14 11:12:45 -0400
commit79d0a253da7c8b167624889df7a61083d6203484 (patch)
tree73efc8d0d4e6541731fce142047522bbb319b0d5 /frontend/pages/builds/download.php
parentAdded ebuild; added ntpd to init deps; builds show [failed] in frontend when ... (diff)
downloadingenue-79d0a253da7c8b167624889df7a61083d6203484.tar.gz
ingenue-79d0a253da7c8b167624889df7a61083d6203484.tar.bz2
ingenue-79d0a253da7c8b167624889df7a61083d6203484.zip
Create sql_row_with_flags class, make user, build, configuration subclasses of it, replace visibility in builds, configurations with flags column; fix init script for correct path
Diffstat (limited to 'frontend/pages/builds/download.php')
-rw-r--r--frontend/pages/builds/download.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/pages/builds/download.php b/frontend/pages/builds/download.php
index f472046..ec957a1 100644
--- a/frontend/pages/builds/download.php
+++ b/frontend/pages/builds/download.php
@@ -13,7 +13,7 @@ function init_builds_download(&$S) {
return '404';
}
$build=new sql_build($r->fetch(PDO::FETCH_ASSOC));
- if ($build->visibility == 'private' && !owner_or_admin($build->owner)) {
+ if ($build->has_flag('p') && !owner_or_admin($build->owner)) {
debug('builds_download', 'Permission denied');
return '404';
}