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:
parent
7a9c15e5e9
commit
855cac45c7
|
@ -240,7 +240,7 @@ public class OrganizationManagerImpl extends OrganizationsUtil {
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public Boolean readOrganizationCustomAttribute(String username, Organization currOrg, String attrToCheck) {
|
||||
public static Boolean readOrganizationCustomAttribute(String username, Organization currOrg, String attrToCheck) {
|
||||
Boolean isEnabled = false;
|
||||
if (username.compareTo("test.user") == 0) {
|
||||
_log.warn("Found test.user maybe you are in dev mode, returning ... ");
|
||||
|
@ -288,7 +288,7 @@ public class OrganizationManagerImpl extends OrganizationsUtil {
|
|||
* @param username
|
||||
* @param attribute2Set
|
||||
*/
|
||||
private void setOrgCustomAttribute(String username, Organization currOrg, String attribute2Set) {
|
||||
private static void setOrgCustomAttribute(String username, Organization currOrg, String attribute2Set) {
|
||||
User currUser = null;
|
||||
if (username.compareTo("test.user") == 0) {
|
||||
_log.warn("Found Test User, returning ... ");
|
||||
|
|
Loading…
Reference in New Issue