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

Improve Roles filter methods check #6655

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

distantnative
Copy link
Member

@distantnative distantnative commented Sep 7, 2024

Description

Summary of changes

  • Roles::canBeChanged() and Roles::canBeCreated() now also filter collection if no current user
  • Roles::canBeChanged() and Roles::canBeCreated() skip filter for admins (as admins always have all permissions)

Ready?

  • In-code documentation (wherever needed)
  • Unit tests for fixed bug/feature
  • Tests and CI checks all pass

@distantnative distantnative added this to the 4.5.0 milestone Sep 7, 2024
@distantnative distantnative self-assigned this Sep 7, 2024
@distantnative distantnative marked this pull request as ready for review September 7, 2024 21:16
@distantnative distantnative requested review from a team September 7, 2024 21:16
@bastianallgeier bastianallgeier merged commit a934458 into develop-minor Sep 10, 2024
12 checks passed
@bastianallgeier bastianallgeier deleted the enhancement/roles-filter-check branch September 10, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants