From ce9c81d9235c91d1647a0fcb4a2b04f146417c89 Mon Sep 17 00:00:00 2001 From: dantb Date: Tue, 3 Oct 2023 09:33:58 +0200 Subject: [PATCH] Tidy --- .../delta/sdk/organizations/model/OrganizationRejection.scala | 2 +- .../bluebrain/nexus/delta/sdk/permissions/Permissions.scala | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/organizations/model/OrganizationRejection.scala b/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/organizations/model/OrganizationRejection.scala index 2cb2fb3374..68710c7ff4 100644 --- a/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/organizations/model/OrganizationRejection.scala +++ b/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/organizations/model/OrganizationRejection.scala @@ -18,7 +18,7 @@ import io.circe.{Encoder, JsonObject} * @param reason * a descriptive message as to why the rejection occurred */ -sealed abstract class OrganizationRejection(val reason: String) extends Throwable with Product with Serializable +sealed abstract class OrganizationRejection(val reason: String) extends Exception(reason) with Product with Serializable object OrganizationRejection { diff --git a/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/permissions/Permissions.scala b/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/permissions/Permissions.scala index ad94177c27..0f919a4fb8 100644 --- a/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/permissions/Permissions.scala +++ b/delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/permissions/Permissions.scala @@ -157,7 +157,6 @@ object Permissions { final val read: Permission = Permission.unsafe("organizations/read") final val write: Permission = Permission.unsafe("organizations/write") final val create: Permission = Permission.unsafe("organizations/create") - // TODO setup this permission final val delete: Permission = Permission.unsafe("organizations/delete") }