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

Fixed access bug for pages with no groups #21

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

cabidop
Copy link
Contributor

@cabidop cabidop commented Oct 2, 2023

This updates the check_access condition in the LandingController to properly check if the page groups is a non-empty list, as Ruby considers empty arrays as truth-y values (so the explicit present? method is needed here).

@angusmcleod as I do not have any pending fixes I think after this PR the plugin version both in package.json and plugin.rb can be bumped to 0.3.0, so feel free to do it manually (I can create a new PR if you prefer).

@angusmcleod angusmcleod self-requested a review October 3, 2023 00:33
Copy link
Member

@angusmcleod angusmcleod left a comment

Choose a reason for hiding this comment

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

@cabidop Thanks!

@angusmcleod angusmcleod merged commit 2134e3b into paviliondev:main Oct 3, 2023
4 checks passed
@angusmcleod
Copy link
Member

@cabidop I've bumped the version and also added you as an author 👍

@cabidop cabidop deleted the fix-empty-groups branch October 3, 2023 13:40
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