Update manager permissions for studios.

This commit is contained in:
Karishma Chadha 2021-06-14 11:00:00 -04:00
parent 07c7ab81b5
commit d0ad0a45d4
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ const isCurator = state => state.studio.curator;
const isManager = state => state.studio.manager || isCreator(state); const isManager = state => state.studio.manager || isCreator(state);
// Action-based permissions selectors // Action-based permissions selectors
const selectCanEditInfo = state => !selectIsMuted(state) && (selectIsAdmin(state) || isManager(state)); const selectCanEditInfo = state => !selectIsMuted(state) && (selectIsAdmin(state) || isCreator(state));
const selectCanAddProjects = state => const selectCanAddProjects = state =>
!selectIsMuted(state) && !selectIsMuted(state) &&
(isManager(state) || (isManager(state) ||

View file

@ -89,7 +89,7 @@ describe('studio info', () => {
test.each([ test.each([
['admin', true], ['admin', true],
['curator', false], ['curator', false],
['manager', true], ['manager', false],
['creator', true], ['creator', true],
['logged in', false], ['logged in', false],
['unconfirmed', false], ['unconfirmed', false],