return excludeInternal ? isAdminRole && !BBConfiguration.getBaasBoxAdminUsername().equals(user.getName()) : isAdminRole;
}
public static ODatabaseRecordTx reconnectAsAdmin (){
if (tranCount.get()>0) throw new SwitchUserContextException("Cannot switch to admin context within an open transaction");
getConnection().close();
try {
return open (appcode.get(),BBConfiguration.getBaasBoxAdminUsername(),BBConfiguration.getBaasBoxAdminPassword());
} catch (InvalidAppCodeException e) {
throw new RuntimeException(e);