We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bfb80e commit e455535Copy full SHA for e455535
services/web/server/src/simcore_service_webserver/security/_authz_service.py
@@ -60,9 +60,12 @@ async def check_user_permission(
60
61
allowed = await aiohttp_security.api.permits(request, permission, context)
62
if not allowed:
63
- raise web.HTTPForbidden(
64
- reason=f"You do not have sufficient access rights for {permission}"
65
- )
+ msg = "You do not have sufficient access rights for"
+ if permission == PERMISSION_PRODUCT_LOGIN_KEY:
+ msg += f" {context.get('product_name')}"
66
+ else:
67
+ msg += f" {permission}"
68
+ raise web.HTTPForbidden(reason=msg)
69
70
71
#
0 commit comments