mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-03 12:27:30 -05:00
Update permissions for editing open_to_all to match current backend
This commit is contained in:
parent
dec9f96eed
commit
5827aaab8f
2 changed files with 3 additions and 3 deletions
|
@ -25,9 +25,9 @@ const selectCanDeleteCommentWithoutConfirm = state => selectIsAdmin(state);
|
|||
|
||||
const selectCanFollowStudio = state => selectIsLoggedIn(state);
|
||||
|
||||
// Matching existing behavior, only the creator is allowed to toggle comments.
|
||||
// Matching existing behavior, only admin/creator is allowed to toggle comments.
|
||||
const selectCanEditCommentsAllowed = state => selectIsAdmin(state) || isCreator(state);
|
||||
const selectCanEditOpenToAll = state => selectIsAdmin(state) || isManager(state);
|
||||
const selectCanEditOpenToAll = state => isManager(state);
|
||||
|
||||
export {
|
||||
selectCanEditInfo,
|
||||
|
|
|
@ -196,7 +196,7 @@ describe('studio comments', () => {
|
|||
|
||||
describe('can set "open to all" on a studio', () => {
|
||||
test.each([
|
||||
['admin', true],
|
||||
['admin', false],
|
||||
['curator', false],
|
||||
['manager', true],
|
||||
['creator', true],
|
||||
|
|
Loading…
Reference in a new issue