diff options
Diffstat (limited to 'frontend/pages/builds/log.php')
-rw-r--r-- | frontend/pages/builds/log.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/pages/builds/log.php b/frontend/pages/builds/log.php index 078b816..31ee5c7 100644 --- a/frontend/pages/builds/log.php +++ b/frontend/pages/builds/log.php @@ -6,7 +6,7 @@ function init_builds_log(&$S) { $r=query('SELECT * FROM `builds` WHERE `id`="'.$_REQUEST['build'].'"'); if ($r->rowCount()) { $S['builds_log']=new sql_build($r->fetch(PDO::FETCH_ASSOC)); - if ($S['builds_log']->visibility == 'private' && !owner_or_admin($S['builds_log']->owner)) return '404'; + if ($S['builds_log']->has_flag('p') && !owner_or_admin($S['builds_log']->owner)) return '404'; } else return '404'; if (isset($_REQUEST['task']) && is_numeric($_REQUEST['task'])) |