Commit 5827aaab authored by Paul Kaplan's avatar Paul Kaplan

Update permissions for editing open_to_all to match current backend

parent dec9f96e
......@@ -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],
......
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