Leantime/leantime · error · Illuminate\Http\Exceptions\HttpResponseException
/errors/error403
Error message
/errors/error403
What it means
Error "/errors/error403" thrown in Leantime/leantime.
Source
Thrown at app/Domain/Auth/Services/Auth.php:625
$currentUserKey = array_search($roleToCheck, Roles::getRoles());
if ($testKey <= $currentUserKey) {
return true;
} else {
return false;
}
}
/**
* @throws HttpResponseException
*/
public static function authOrRedirect(array|string $role, bool $forceGlobalRoleCheck = false): bool
{
if (self::userHasRole($role, $forceGlobalRoleCheck)) {
return true;
}
throw new HttpResponseException(FrontcontrollerCore::redirect(BASE_URL.'/errors/error403'));
}
/**
* @throws BindingResolutionException
*/
public static function userHasRole(string|array $role, bool $forceGlobalRoleCheck = false): bool
{
// Force Global Role check to circumvent projectRole checks for global controllers (users, projects, clients etc)
$roleToCheck = self::getRoleToCheck($forceGlobalRoleCheck);
if (is_array($role) && in_array($roleToCheck, $role)) {
return true;
} elseif ($role == $roleToCheck) {
return true;
}
return false;View on GitHub (pinned to 9a9f49f100)
When it happens
Trigger: Thrown at app/Domain/Auth/Services/Auth.php:625 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Leantime/leantime@9a9f49f100 (2026-08-21).
Data as JSON: /api/errors/d1ecd7c90c3f3f31.
Report an issue: GitHub.