File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/scala/fr/brouillard/gitbucket/announce Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import org.slf4j.LoggerFactory
1414import gitbucket .core .util .Implicits ._
1515
1616class AnnounceController extends AnnounceControllerBase
17- with AnnounceService with AccountService with SystemSettingsService with AdminAuthenticator
17+ with AnnounceService with AccountService with AdminAuthenticator
1818
1919trait AnnounceControllerBase extends ControllerBase {
2020 self : AnnounceService with SystemSettingsService with AdminAuthenticator =>
@@ -34,7 +34,7 @@ trait AnnounceControllerBase extends ControllerBase {
3434 })
3535
3636 post(" /admin/announce" , announceForm)(adminOnly { form =>
37- val systemSettings = loadSystemSettings()
37+ val systemSettings = context.settings
3838
3939 if (systemSettings.useSMTP && systemSettings.smtp.nonEmpty) {
4040 if (logger.isDebugEnabled) {
Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ object EmailAddress {
1313trait AnnounceService {
1414 self : AccountService =>
1515
16- def getAccountByGroupName (groupName : String , includeRemoved : Boolean = false )(implicit s : Session ): List [Account ] = {
16+ def getAccountByGroupName (groupName : String )(implicit s : Session ): List [Account ] = {
1717 val needs = GroupMembers
1818 .filter(_.groupName === groupName.bind)
1919 .sortBy(_.userName)
2020 .map(_.userName)
2121 .list
2222
2323 Accounts
24- .filter(t => (t.userName inSetBind needs) && (t.removed === false .bind, ! includeRemoved ))
24+ .filter(t => (t.userName inSetBind needs) && (t.removed === false .bind))
2525 .list
2626 }
2727
You can’t perform that action at this time.
0 commit comments