Allow /v1/me for beans scope.

This commit is contained in:
flash 2024-11-19 22:04:53 +00:00
parent fd24b59e89
commit b3660dd3a5

View file

@ -18,7 +18,7 @@ class V1UsersRoutes implements RouteHandler {
$response->setHeader('Cache-Control', 'no-store');
$authz = $this->ctx->getAuthzContext();
if(!$authz->hasScope('identify'))
if(!$authz->hasScope('identify') && !$authz->hasScope('beans'))
return 403;
if($authz->isAppUser()) {