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

Dry up signin permission logic #2340

Merged
merged 2 commits into from
Sep 5, 2023
Merged

Conversation

chrisroos
Copy link
Contributor

@chrisroos chrisroos commented Sep 5, 2023

I made these improvements as part of working on #2334 but think they're useful to merge in their own right.

  • Extract User#grant_application_signin_permission(app) to remove duplication of the numerous calls to User#grant_application_permission(app, "signin").
  • Extract SupportedPermission::SIGNIN_NAME to remove duplication of the "signin" string through the code.

To remove duplication of the "signin" string.
@chrisroos chrisroos marked this pull request as ready for review September 5, 2023 09:25
Copy link
Contributor

@floehopper floehopper left a comment

Choose a reason for hiding this comment

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

This all looks good to me and means I can tick off something on my personal to-do list! Thank you! 😄

@chrisroos chrisroos merged commit cc4da25 into main Sep 5, 2023
@chrisroos chrisroos deleted the dry-up-signin-permission-logic branch September 5, 2023 09:56
@chrisroos
Copy link
Contributor Author

Thanks, @floehopper 👍

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