mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Update manager permissions for studios.
This commit is contained in:
parent
07c7ab81b5
commit
d0ad0a45d4
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ const isCurator = state => state.studio.curator;
|
|||
const isManager = state => state.studio.manager || isCreator(state);
|
||||
|
||||
// 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 =>
|
||||
!selectIsMuted(state) &&
|
||||
(isManager(state) ||
|
||||
|
|
|
@ -89,7 +89,7 @@ describe('studio info', () => {
|
|||
test.each([
|
||||
['admin', true],
|
||||
['curator', false],
|
||||
['manager', true],
|
||||
['manager', false],
|
||||
['creator', true],
|
||||
['logged in', false],
|
||||
['unconfirmed', false],
|
||||
|
|
Loading…
Reference in a new issue