diff --git a/meteor/server/security/buckets.ts b/meteor/server/security/buckets.ts index ea84bf7a28..aa7e4c7589 100644 --- a/meteor/server/security/buckets.ts +++ b/meteor/server/security/buckets.ts @@ -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 { @@ -28,8 +27,6 @@ export namespace BucketSecurity { ): Promise { 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!`)