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

AuthorGroupConditionRule::isSelectable() implementation and Fixed isConditionRuleSelectable logic #11104

Merged
merged 4 commits into from
May 6, 2022

Conversation

nfourtythree
Copy link
Contributor

Description

Before this PR rules that weren’t selectable would still show in the rule type dropdown but then would disappear upon selection.

This PR also implements the isSelectable() method on the AuthorGroupConditionRule to add logic to only allow its selection if there are any user groups in the system.

Previously rules that weren’t selectable would still show but then would disappear when trying to add a rule
@nfourtythree nfourtythree self-assigned this May 5, 2022
@nfourtythree nfourtythree requested a review from brandonkelly May 5, 2022 10:16
@nfourtythree nfourtythree marked this pull request as ready for review May 5, 2022 11:12
@nfourtythree nfourtythree requested a review from a team as a code owner May 5, 2022 11:12
@lukeholder lukeholder self-requested a review May 6, 2022 02:18
@brandonkelly brandonkelly merged commit 20f32c9 into develop May 6, 2022
@brandonkelly brandonkelly deleted the bugfix/author-group-condition-isselectable branch May 6, 2022 06:44
brandonkelly added a commit that referenced this pull request May 6, 2022
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.

3 participants