Skip to content

Commit

Permalink
Merge pull request #1589 from serlo/SeBB1-kulla-2024-06-15-08-40
Browse files Browse the repository at this point in the history
fix(entity): Remove double check for creating entities
  • Loading branch information
kulla authored Jun 15, 2024
2 parents 1dd0355 + c4e1237 commit ad2a4ef
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/server/src/schema/uuid/abstract-entity/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,6 @@ export const resolvers: Resolvers = {
)
}

await assertUserIsAuthorized({
context,
message: 'You are not allowed to create entities',
guard: serloAuth.Uuid.create('EntityRevision')(
instanceToScope(entity.instance),
),
})

const { insertId: revisionId } = await database.mutate(
'insert into uuid (trashed, discriminator) values (0, "entityRevision")',
)
Expand Down

0 comments on commit ad2a4ef

Please sign in to comment.