Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Nov 10, 2023
1 parent c53749b commit e2523c3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions meteor/server/security/buckets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { BucketAdLib } from '@sofie-automation/corelib/dist/dataModel/BucketAdLi
import { BucketAdLibAction } from '@sofie-automation/corelib/dist/dataModel/BucketAdLibAction'
import { AdLibActionId, BucketId, PieceId } from '@sofie-automation/corelib/dist/dataModel/Ids'
import { BucketAdLibActions, BucketAdLibs, Buckets } from '../collections'
import { Settings } from '../../lib/Settings'

export namespace BucketSecurity {
export interface BucketContentAccess extends StudioContentAccess {
Expand All @@ -28,8 +27,6 @@ export namespace BucketSecurity {
): Promise<boolean> {
check(bucketId, String)

if (!Settings.enableUserAccounts) return true

const bucket = await Buckets.findOneAsync(bucketId)
if (!bucket) throw new Meteor.Error(404, `Bucket "${bucketId}" not found!`)

Expand Down

0 comments on commit e2523c3

Please sign in to comment.