Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression when parent list of a Content field had a where clau… #1673

Merged
merged 2 commits into from
Sep 18, 2019

Conversation

timleslie
Copy link
Contributor

…se as its access control.

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2019

🦋 Changeset is good to go

Latest commit: 5275bff

We got this.

Not sure what this means? Click here to learn what changesets are.

@@ -51,7 +51,16 @@ export class OEmbedBlock extends Block {
'A reference back to the Slate.js Serialised Document this embed is contained within',
},
},
access: listConfig.listAccess,
access: Object.entries(listConfig.listAccess).reduce(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Util function?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's now used 3 times?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 times!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, maybe, but also I don't have time right now :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real refactor should come one level higher with the way we create these Aux lists for blocks, but that's future Tim's problem.

@timleslie timleslie merged commit 04aa6a0 into master Sep 18, 2019
@timleslie timleslie deleted the content-access-control branch September 18, 2019 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants