diff options
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala b/src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala index 31ccff7..a735ade 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/services/CategoryService.scala @@ -13,8 +13,7 @@ object CategoryService { object GetListReply { case class EntityList(xs: Seq[CategoryWithLabels], totalFound: Int) extends GetListReply - case object AuthorizationError - extends GetListReply with DomainError.AuthorizationError { + case object AuthorizationError extends GetListReply with DomainError.AuthorizationError { def userMessage: String = "Access denied" } } @@ -24,5 +23,6 @@ trait CategoryService extends PhiLogging { import CategoryService._ - def getAll(sorting: Option[Sorting] = None)(implicit requestContext: AuthenticatedRequestContext): Future[GetListReply] + def getAll(sorting: Option[Sorting] = None)( + implicit requestContext: AuthenticatedRequestContext): Future[GetListReply] } |