mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
(refs #114)Add logical remove flag to ACCOUNT.
This commit is contained in:
@@ -71,7 +71,8 @@ trait AccountService {
|
|||||||
updatedDate = currentDate,
|
updatedDate = currentDate,
|
||||||
lastLoginDate = None,
|
lastLoginDate = None,
|
||||||
image = None,
|
image = None,
|
||||||
isGroupAccount = false)
|
isGroupAccount = false,
|
||||||
|
isRemoved = false)
|
||||||
|
|
||||||
def updateAccount(account: Account): Unit =
|
def updateAccount(account: Account): Unit =
|
||||||
Accounts
|
Accounts
|
||||||
@@ -105,7 +106,8 @@ trait AccountService {
|
|||||||
updatedDate = currentDate,
|
updatedDate = currentDate,
|
||||||
lastLoginDate = None,
|
lastLoginDate = None,
|
||||||
image = None,
|
image = None,
|
||||||
isGroupAccount = true)
|
isGroupAccount = true,
|
||||||
|
isRemoved = false)
|
||||||
|
|
||||||
def updateGroup(groupName: String, url: Option[String]): Unit =
|
def updateGroup(groupName: String, url: Option[String]): Unit =
|
||||||
Accounts.filter(_.userName is groupName.bind).map(_.url.?).update(url)
|
Accounts.filter(_.userName is groupName.bind).map(_.url.?).update(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user