fix for bug #712 and assigning the wrong username found in session

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/custom-portal-handler@119415 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2015-10-05 17:15:48 +00:00
parent 7a9c15e5e9
commit 855cac45c7
1 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ public class OrganizationManagerImpl extends OrganizationsUtil {
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public Boolean readOrganizationCustomAttribute(String username, Organization currOrg, String attrToCheck) { public static Boolean readOrganizationCustomAttribute(String username, Organization currOrg, String attrToCheck) {
Boolean isEnabled = false; Boolean isEnabled = false;
if (username.compareTo("test.user") == 0) { if (username.compareTo("test.user") == 0) {
_log.warn("Found test.user maybe you are in dev mode, returning ... "); _log.warn("Found test.user maybe you are in dev mode, returning ... ");
@ -288,7 +288,7 @@ public class OrganizationManagerImpl extends OrganizationsUtil {
* @param username * @param username
* @param attribute2Set * @param attribute2Set
*/ */
private void setOrgCustomAttribute(String username, Organization currOrg, String attribute2Set) { private static void setOrgCustomAttribute(String username, Organization currOrg, String attribute2Set) {
User currUser = null; User currUser = null;
if (username.compareTo("test.user") == 0) { if (username.compareTo("test.user") == 0) {
_log.warn("Found Test User, returning ... "); _log.warn("Found Test User, returning ... ");