From ef3e861fc34dc73f66af0cd061cfc276e2222d7e Mon Sep 17 00:00:00 2001 From: seotts Date: Fri, 24 Sep 2021 16:12:09 -0400 Subject: [PATCH] Allow admins to promote curators --- src/redux/studio-permissions.js | 2 +- test/unit/redux/studio-permissions.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redux/studio-permissions.js b/src/redux/studio-permissions.js index a1fe04008..5954c67a3 100644 --- a/src/redux/studio-permissions.js +++ b/src/redux/studio-permissions.js @@ -52,7 +52,7 @@ const selectCanRemoveCurator = (state, username) => { }; const selectCanRemoveManager = (state, managerId) => !selectIsMuted(state) && (selectIsAdmin(state) || isManager(state)) && managerId !== state.studio.host; -const selectCanPromoteCurators = state => !selectIsMuted(state) && isManager(state); +const selectCanPromoteCurators = state => !selectIsMuted(state) && (isManager(state) || selectIsAdmin(state)); const selectCanTransfer = (state, managerId) => { // Nobody can transfer a class studio. diff --git a/test/unit/redux/studio-permissions.test.js b/test/unit/redux/studio-permissions.test.js index 538ee6ade..ae230fbed 100644 --- a/test/unit/redux/studio-permissions.test.js +++ b/test/unit/redux/studio-permissions.test.js @@ -344,7 +344,7 @@ describe('studio members', () => { describe('can promote curators', () => { test.each([ - ['admin', false], + ['admin', true], ['curator', false], ['manager', true], ['creator', true],