Permalink
Browse files

Upgrade: Force delete "phantom" account admin users.

Fixes EUCA-2365
  • Loading branch information...
1 parent 7a7a856 commit 2273d7fc1c36eaa738324122f1d776aaf21cb7f3 @a13m a13m committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 clc/modules/core/conf/upgrade/upgrade_30_31.groovy
View
2 clc/modules/core/conf/upgrade/upgrade_30_31.groovy
@@ -476,7 +476,7 @@ class upgrade_30_31 extends AbstractUpgradeScript {
AccountEntity acctEnt = DatabaseAuthUtils.getUnique( db, AccountEntity.class, "name", phantomUserMap[userId][1] );
initMetaClass(acctEnt, AccountEntity.class);
Account acct = new DatabaseAccountProxy(acctEnt);
- acct.deleteUser(phantomUserMap[userId][0], false, true);
+ acct.deleteUser(phantomUserMap[userId][0], true, true);
}
for (String acctId : phantomAcctMap.keySet()) {
Accounts.deleteAccount(phantomAcctMap[acctId], false, true);

0 comments on commit 2273d7f

Please sign in to comment.