Merge pull request #6097 from seotts/admins-can-promote

Allow admins to promote curators to managers
This commit is contained in:
Sarah Otts 2021-09-27 15:02:25 -04:00 committed by GitHub
commit c4c48578a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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],