Update permissions for editing open_to_all to match current backend

This commit is contained in:
Paul Kaplan 2021-04-27 09:06:40 -04:00
parent dec9f96eed
commit 5827aaab8f
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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],