Merge pull request #5692 from kchadha/manager-permissions

Update manager permissions for studios.
This commit is contained in:
Karishma Chadha 2021-07-06 09:22:59 -04:00 committed by GitHub
commit 6dbf8d1bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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],