Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyhappydan committed Sep 29, 2023
1 parent 058d86a commit c368203
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ import ch.epfl.bluebrain.nexus.delta.sourcing.model.ProjectRef
import monix.bio.UIO

class StoragePermissionProviderImpl(storages: Storages) extends StoragePermissionProvider {
override def permissionFor(id: IdSegmentRef, project: ProjectRef, accessType: StoragePermissionProvider.AccessType): UIO[Permission] = {
override def permissionFor(
id: IdSegmentRef,
project: ProjectRef,
accessType: StoragePermissionProvider.AccessType
): UIO[Permission] = {
storages
.fetch(id, project)
.map(storage => storage.value.storageValue)
.map(storage =>
accessType match {
case Read => storage.readPermission
case Read => storage.readPermission
case Write => storage.writePermission
}
)
Expand Down

0 comments on commit c368203

Please sign in to comment.