File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,9 @@ export async function reorderShowStyleVariant(
216216 } )
217217}
218218
219- async function getCreateAdlibTestingRundownOptions ( ) : Promise < CreateAdlibTestingRundownOption [ ] > {
219+ async function getCreateAdlibTestingRundownOptions ( context : MethodContext ) : Promise < CreateAdlibTestingRundownOption [ ] > {
220+ assertConnectionHasOneOfPermissions ( context . connection , 'studio' )
221+
220222 const [ studios , showStyleBases , showStyleVariants ] = await Promise . all ( [
221223 Studios . findFetchAsync (
222224 { } ,
@@ -304,7 +306,7 @@ class ServerShowStylesAPI extends MethodContextAPI implements NewShowStylesAPI {
304306 }
305307
306308 async getCreateAdlibTestingRundownOptions ( ) {
307- return getCreateAdlibTestingRundownOptions ( )
309+ return getCreateAdlibTestingRundownOptions ( this )
308310 }
309311}
310312registerClassToMeteorMethods ( ShowStylesAPIMethods , ServerShowStylesAPI , false )
You can’t perform that action at this time.
0 commit comments