Commit ef3e861f authored by seotts's avatar seotts

Allow admins to promote curators

parent 705e8dba
......@@ -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.
......
......@@ -344,7 +344,7 @@ describe('studio members', () => {
describe('can promote curators', () => {
test.each([
['admin', false],
['admin', true],
['curator', false],
['manager', true],
['creator', true],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment