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 ancestor lookup when using prepended modules #17

Merged
merged 3 commits into from
Apr 14, 2019
Merged

Conversation

tlconnor
Copy link
Contributor

@tlconnor tlconnor commented Apr 14, 2019

The filter_access_permissions method will look up the module ancestor tree calling filter_access_permissions on each.

It previously assumed that ancestors[0] would always be self, however this has not been the case since the introduction of prepend.

This PR fixes the issue by comparing to self instead of assuming the first ancestor is self.

@tlconnor tlconnor force-pushed the fixAncestorLookup branch from bc13197 to d731353 Compare April 14, 2019 22:39
@tlconnor tlconnor force-pushed the fixAncestorLookup branch 2 times, most recently from d392793 to 6ac1ea4 Compare April 14, 2019 23:40
@tlconnor tlconnor force-pushed the fixAncestorLookup branch from 6ac1ea4 to 928fcb7 Compare April 14, 2019 23:50
@tlconnor tlconnor merged commit 121c333 into master Apr 14, 2019
@tlconnor tlconnor deleted the fixAncestorLookup branch April 14, 2019 23:59
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.

2 participants