Allow admins to promote curators

This commit is contained in:
seotts 2021-09-24 16:12:09 -04:00
parent 705e8dba6e
commit ef3e861fc3
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -344,7 +344,7 @@ describe('studio members', () => {
describe('can promote curators', () => {
test.each([
['admin', false],
['admin', true],
['curator', false],
['manager', true],
['creator', true],