From 9152b9d72105310b5a650181d33f4496485a27e5 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 16 Jun 2020 09:13:24 +0300 Subject: [PATCH] Updated error message --- app/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.php b/app/app.php index dcab392a73..31dc0d4afd 100644 --- a/app/app.php +++ b/app/app.php @@ -187,7 +187,7 @@ $utopia->init(function () use ($utopia, $request, $response, &$user, $project, $ throw new Exception('Project not found', 404); } - throw new Exception($user->getAttribute('email', 'Guest').' (role: '.strtolower($roles[$role]['label']).') missing scope ('.$scope.')', 401); + throw new Exception($user->getAttribute('email', 'User').' (role: '.strtolower($roles[$role]['label']).') missing scope ('.$scope.')', 401); } if (Auth::USER_STATUS_BLOCKED == $user->getAttribute('status')) { // Account has not been activated