Unverified Commit c4c48578 authored by Sarah Otts's avatar Sarah Otts Committed by GitHub

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

Allow admins to promote curators to managers
parents 923f3fcf ef3e861f
...@@ -52,7 +52,7 @@ const selectCanRemoveCurator = (state, username) => { ...@@ -52,7 +52,7 @@ const selectCanRemoveCurator = (state, username) => {
}; };
const selectCanRemoveManager = (state, managerId) => const selectCanRemoveManager = (state, managerId) =>
!selectIsMuted(state) && (selectIsAdmin(state) || isManager(state)) && managerId !== state.studio.host; !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) => { const selectCanTransfer = (state, managerId) => {
// Nobody can transfer a class studio. // Nobody can transfer a class studio.
......
...@@ -344,7 +344,7 @@ describe('studio members', () => { ...@@ -344,7 +344,7 @@ describe('studio members', () => {
describe('can promote curators', () => { describe('can promote curators', () => {
test.each([ test.each([
['admin', false], ['admin', true],
['curator', false], ['curator', false],
['manager', true], ['manager', true],
['creator', 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