Unverified Commit 6dbf8d1b authored by Karishma Chadha's avatar Karishma Chadha Committed by GitHub

Merge pull request #5692 from kchadha/manager-permissions

Update manager permissions for studios.
parents 54b9161d d0ad0a45
...@@ -8,7 +8,7 @@ const isCurator = state => state.studio.curator; ...@@ -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) ||
......
...@@ -89,7 +89,7 @@ describe('studio info', () => { ...@@ -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],
......
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