com web/bugs: people with bug pw also have access: include/functions.php

From: Date: Tue, 08 May 2012 22:02:37 +0000
Subject: com web/bugs: people with bug pw also have access: include/functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13490@lists.php.net to get a copy of this message
Commit: 0d25208157b2ecb53fbba5b0a4f07374cdcd176c Author: Ferenc Kovacs <tyra3l@gmail.com> Wed, 9 May 2012 00:02:37 +0200 Parents: e76b079e552d0da3fde06a265f5b26225bd16855 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=0d25208157b2ecb53fbba5b0a4f07374cdcd176c Log: people with bug pw also have access Changed paths: M include/functions.php Diff: diff --git a/include/functions.php b/include/functions.php index 30f0af7..ae9597b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -117,6 +117,10 @@ function bugs_has_access ($bug_id, $bug, $pw, $user_flags) } else if (($user_flags == BUGS_NORMAL_USER) && $pw != '' && verify_bug_passwd($bug_id, $pw)) { // The submitter return true; + } else if (($user_flags & BUGS_DEV_USER) && $bug['reporter_name'] != '' && + strtolower($bug['reporter_name']) == strtolower($auth_user->handle)) { + // The submitter (php developer) + return true; } else if (($user_flags & BUGS_DEV_USER) && $bug['assign'] != '' && strtolower($bug['assign']) == strtolower($auth_user->handle)) { // The assigned dev

« previous php.webmaster (#13490) next »