Skip to content

Conversation

MarcelGeo
Copy link
Collaborator

@MarcelGeo MarcelGeo commented Mar 14, 2024

Details

Ticket https://github.com/MerginMaps/server-private/issues/2216

Bug
It was not possible to accept / decline access request for users, which were not in project.access lists.

Fix
Use preddefined function from permissions for checking project role of current user.

@varmar05 I'm not sure If it is ok to remove project.creator from if condition.

@MarcelGeo MarcelGeo requested a review from varmar05 March 14, 2024 13:10
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8281272193

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 94.023%

Totals Coverage Status
Change from base Build 8267365113: 0.03%
Covered Lines: 5616
Relevant Lines: 5973

💛 - Coveralls

@MarcelGeo MarcelGeo changed the title Fix: get project role from permissions not project.access API FIX: Accept access request - Use project roles for permission checks, not project access. Mar 14, 2024
@MarcelGeo MarcelGeo changed the title API FIX: Accept access request - Use project roles for permission checks, not project access. API FIX: Accept/decline access request - Use project roles for permission checks, not project access. Mar 14, 2024
@varmar05 varmar05 merged commit ad3f6f3 into develop Mar 18, 2024
@MarcelGeo MarcelGeo deleted the fix-gh211-access-requests-accept branch March 27, 2024 13:18
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