return masterContext;
}
public WGUserAccess getoriginaluserdata() {
RootEnvironmentUserData userData = getEnvironment().getRootEnvironmentUserData();
// We have no root environment data = we are in root environment. So we return the current db user access
if (userData == null) {
return db().getSessionContext().getUserAccess();
}
// We return root environment data only if it matches the database currently in context
if (userData.getDbkey().equals(db().getDbReference())) {
return userData.getUserAccess();
}
// We have root environment data, but it does not match the current context db = we have no data for the current db. So return null.
else {
return null;