File tree 2 files changed +4
-4
lines changed
src/main/scala/fr/brouillard/gitbucket/announce
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
14
14
import gitbucket .core .util .Implicits ._
15
15
16
16
class AnnounceController extends AnnounceControllerBase
17
- with AnnounceService with AccountService with SystemSettingsService with AdminAuthenticator
17
+ with AnnounceService with AccountService with AdminAuthenticator
18
18
19
19
trait AnnounceControllerBase extends ControllerBase {
20
20
self : AnnounceService with SystemSettingsService with AdminAuthenticator =>
@@ -34,7 +34,7 @@ trait AnnounceControllerBase extends ControllerBase {
34
34
})
35
35
36
36
post(" /admin/announce" , announceForm)(adminOnly { form =>
37
- val systemSettings = loadSystemSettings()
37
+ val systemSettings = context.settings
38
38
39
39
if (systemSettings.useSMTP && systemSettings.smtp.nonEmpty) {
40
40
if (logger.isDebugEnabled) {
Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ object EmailAddress {
13
13
trait AnnounceService {
14
14
self : AccountService =>
15
15
16
- def getAccountByGroupName (groupName : String , includeRemoved : Boolean = false )(implicit s : Session ): List [Account ] = {
16
+ def getAccountByGroupName (groupName : String )(implicit s : Session ): List [Account ] = {
17
17
val needs = GroupMembers
18
18
.filter(_.groupName === groupName.bind)
19
19
.sortBy(_.userName)
20
20
.map(_.userName)
21
21
.list
22
22
23
23
Accounts
24
- .filter(t => (t.userName inSetBind needs) && (t.removed === false .bind, ! includeRemoved ))
24
+ .filter(t => (t.userName inSetBind needs) && (t.removed === false .bind))
25
25
.list
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments