Skip to content
Snippets Groups Projects
Commit 719f50c7 authored by felmer's avatar felmer
Browse files

SSDM-13279: bug fixed: now user ids with '-' are extracted correctly from session token

parent b9a03170
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -60,7 +60,7 @@ def process(context, parameters):
spaceCode = getSpace(entity);
# 2. Verify that the user is an admin in such space
userId = sessionToken.split("-")[0];
userId = "-".join(sessionToken.split("-")[:-1])
isAdminOfSpace = isUserAdminOnSpace(context.applicationService, sessionToken, userId, spaceCode);
if not isAdminOfSpace:
raise AuthorizationFailureException("The user is not enough rights to freeze.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment