(refs #114)Add group deletion.

This commit is contained in:
takezoe
2013-11-03 01:37:23 +09:00
parent e366af98b5
commit 2118f8c764
3 changed files with 32 additions and 11 deletions

View File

@@ -115,8 +115,8 @@ trait AccountService {
isGroupAccount = true,
isRemoved = false)
def updateGroup(groupName: String, url: Option[String]): Unit =
Accounts.filter(_.userName is groupName.bind).map(_.url.?).update(url)
def updateGroup(groupName: String, url: Option[String], removed: Boolean): Unit =
Accounts.filter(_.userName is groupName.bind).map(t => t.url.? ~ t.removed).update(url, removed)
def updateGroupMembers(groupName: String, members: List[String]): Unit = {
Query(GroupMembers).filter(_.groupName is groupName.bind).delete