mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Merge pull request #5692 from kchadha/manager-permissions
Update manager permissions for studios.
This commit is contained in:
commit
6dbf8d1bd5
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