summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/pages/builds/history.php')
-rw-r--r--frontend/pages/builds/history.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/pages/builds/history.php b/frontend/pages/builds/history.php
index c9789e3..9e965f3 100644
--- a/frontend/pages/builds/history.php
+++ b/frontend/pages/builds/history.php
@@ -7,7 +7,7 @@ function init_builds_history(&$S) {
$r=query('SELECT * FROM `builds` WHERE `id`="'.$_REQUEST['build'].'"');
if (!$r->rowCount()) return '404';
$S['builds_history']['build']=new sql_build($r->fetch(PDO::FETCH_ASSOC));
- if ($S['builds_history']['build']->visibility == 'private' && !owner_or_admin($S['builds_history']['build']->id)) {
+ if ($S['builds_history']['build']->has_flag('p') && !owner_or_admin($S['builds_history']['build']->id)) {
return '404';
}
return array('title' => 'Download History');