Skip to content

Commit

Permalink
#1482 Prevent import on "exportOnly" MISP
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 14, 2020
1 parent ae74ecf commit 795d986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MispActor @Inject() (
context.become(running)
logger.info(s"Synchronising MISP events for ${connector.clients.map(_.name).mkString(",")}")
Future
.traverse(connector.clients)(mispImportSrv.syncMispEvents(_)(userSrv.getSystemAuthContext))
.traverse(connector.clients.filter(_.canImport))(mispImportSrv.syncMispEvents(_)(userSrv.getSystemAuthContext))
.map(_ => ())
.onComplete(status => self ! EndOfSynchro(status))
case other => logger.warn(s"Unknown message $other (${other.getClass})")
Expand Down

0 comments on commit 795d986

Please sign in to comment.