From 5f11e1f0e4d4841ecfb81fab488876d45cf09822 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Thu, 21 Mar 2013 12:42:07 +0000 Subject: [PATCH] bug fixed in registerSpace: Reload users role assignment after self assigning to the freshly created space. SVN: 28663 --- .../ch/systemsx/cisd/openbis/generic/server/CommonServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/CommonServer.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/CommonServer.java index 3fb6ad3ecfb..bc044558aee 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/CommonServer.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/CommonServer.java @@ -465,6 +465,8 @@ public final class CommonServer extends AbstractCommonServer<ICommonServerForInt { registerSpaceRole(sessionToken, RoleCode.ADMIN, new SpaceIdentifier(spaceCode), Grantee.createPerson(session.getUserName())); + PersonPE person = session.tryGetPerson(); + session.setPerson(getDAOFactory().getPersonDAO().getPerson(person.getId())); } } -- GitLab