Added support for Terms of Use Display
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/join-vre@150842 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
97ccf4e896
commit
59d6b2996d
|
@ -378,7 +378,7 @@ public class JoinServiceImpl extends RemoteServiceServlet implements JoinService
|
||||||
_log.debug("Request does not exist, addMembershipRequest for user " + username);
|
_log.debug("Request does not exist, addMembershipRequest for user " + username);
|
||||||
LoginServiceUtil.addMembershipRequest(username, scope, optionalMessage, getThreadLocalRequest());
|
LoginServiceUtil.addMembershipRequest(username, scope, optionalMessage, getThreadLocalRequest());
|
||||||
if (getTermsOfUse(groupId) != null) {
|
if (getTermsOfUse(groupId) != null) {
|
||||||
new TermsOfUseImpl().hasAcceptedToU(username, groupId);
|
new TermsOfUseImpl().setAcceptedToU(username, groupId);
|
||||||
_log.info(username + "has requested and acceptedToU OK for " + scope);
|
_log.info(username + "has requested and acceptedToU OK for " + scope);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -422,7 +422,7 @@ public class JoinServiceImpl extends RemoteServiceServlet implements JoinService
|
||||||
_log.info("notifyUserSelfRegistration sent");
|
_log.info("notifyUserSelfRegistration sent");
|
||||||
}
|
}
|
||||||
if (getTermsOfUse(groupId) != null) {
|
if (getTermsOfUse(groupId) != null) {
|
||||||
new TermsOfUseImpl().hasAcceptedToU(currUser.getUsername(), groupId);
|
new TermsOfUseImpl().setAcceptedToU(currUser.getUsername(), groupId);
|
||||||
_log.info("hasAcceptedToU OK for " + currUser.getUsername());
|
_log.info("hasAcceptedToU OK for " + currUser.getUsername());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue