Skip to content

Commit f4b9f09

Browse files
committed
Fixup
1 parent 7554a45 commit f4b9f09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/scala/fr/brouillard/gitbucket/announce/controller/AnnounceController.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import org.slf4j.LoggerFactory
1414
import gitbucket.core.util.Implicits._
1515

1616
class AnnounceController extends AnnounceControllerBase
17-
with AnnounceService with AccountService with SystemSettingsService with AdminAuthenticator
17+
with AnnounceService with AccountService with AdminAuthenticator
1818

1919
trait 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) {

src/main/scala/fr/brouillard/gitbucket/announce/service/AnnounceService.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ object EmailAddress {
1313
trait 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

0 commit comments

Comments
 (0)