(refs #114)Add logical remove flag to ACCOUNT.

This commit is contained in:
takezoe
2013-11-01 03:39:59 +09:00
parent 4f10bccf84
commit 9c60b69c88

View File

@@ -71,7 +71,8 @@ trait AccountService {
updatedDate = currentDate,
lastLoginDate = None,
image = None,
isGroupAccount = false)
isGroupAccount = false,
isRemoved = false)
def updateAccount(account: Account): Unit =
Accounts
@@ -105,7 +106,8 @@ trait AccountService {
updatedDate = currentDate,
lastLoginDate = None,
image = None,
isGroupAccount = true)
isGroupAccount = true,
isRemoved = false)
def updateGroup(groupName: String, url: Option[String]): Unit =
Accounts.filter(_.userName is groupName.bind).map(_.url.?).update(url)