diff options
Diffstat (limited to 'frontend/pages/builds/download.php')
-rw-r--r-- | frontend/pages/builds/download.php | 2 |
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'; } |