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

refactor: callable disabled_features #3319

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

Paul-Bob
Copy link
Contributor

@Paul-Bob Paul-Bob commented Oct 9, 2024

Description

Callable disabled_features

Avo.configure do |config|
  config.disabled_features = -> { current_user.is_admin? ? [] : [:global_search] }
end

Tests: https://github.com/avo-hq/avo-pro/pull/93
Docs: avo-hq/docs.avohq.io@1432973

@github-actions github-actions bot added the Chore label Oct 9, 2024
Copy link

codeclimate bot commented Oct 9, 2024

Code Climate has analyzed commit 69d3ab2 and detected 0 issues on this pull request.

View more on Code Climate.

@Paul-Bob Paul-Bob changed the title chore: callable disabled_features refactor: callable disabled_features Oct 9, 2024
@Paul-Bob Paul-Bob added Refactor and removed Chore labels Oct 9, 2024
@Paul-Bob Paul-Bob self-assigned this Oct 9, 2024
@Paul-Bob Paul-Bob merged commit 700233e into main Oct 9, 2024
23 checks passed
@Paul-Bob Paul-Bob deleted the chore/disabled_features_as_proc branch October 9, 2024 14:42
Copy link
Contributor

github-actions bot commented Oct 9, 2024

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant