The New York City Civil Service Commission acted within its authority when it held a hearing on a Brooklyn man’s appeal of the police department’s rejection of his application to become a police officer, a Manhattan judge has ruled.

Mohammed Ahmed passed a civil service exam, but a department psychiatrist determined that he was unsuitable for the position due to “poor stress tolerance.” Ahmed appealed, citing his own doctor’s report that he had gone through a difficult period related to a family disagreement over his brother’s wedding, but he had learned stress-management techniques.