This commit is contained in:
Moradi
2025-04-09 12:49:02 +03:30
parent bae730e402
commit 62a353ef80
2 changed files with 2 additions and 2 deletions
@@ -320,7 +320,7 @@ class TestResultController extends Controller
public function verifyTestResult(TestResult $TestResult, $Value)
{
if (auth('api')->user()->cant('verifyTestResult', $TestResult)) {
return MessageResponse::error(trans('You dont have permission or this test result belongs to another medical center'));
return MessageResponse::error('messages.access_denied');
}
$TestResult->verified = $Value;