redmine

Tested and fixed non-admin case

@@ -123,9 +123,9 @@ if(!$row) @@ -123,9 +123,9 @@ if(!$row)
123 $issue = $redmine->api('issue')->show($row['container_id']); 123 $issue = $redmine->api('issue')->show($row['container_id']);
124 124
125 $project = $redmine->api('project')->show($issue['issue']['project']['id']); 125 $project = $redmine->api('project')->show($issue['issue']['project']['id']);
126 - 126 +$result = mysql_query('SELECT 1 FROM `members` WHERE `project_id`="'.mysql_real_escape_string($project['project']['id']).'" AND `user_id`="'.mysql_real_escape_string($user_id).'"');
127 -$result = mysql_query('SELECT `1` FROM `members` WHERE `project_id`="'.mysql_real_escape_string($project['project']['id']).'" AND `user_id`="'.mysql_real_escape_string($user_id).'"');  
128 if($result !== FALSE) 127 if($result !== FALSE)
129 permit(); 128 permit();
130 129
  130 +error();
131 ?> 131 ?>