mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3176] [CLOSED] Fixed team invite case sensitive and admin can't delete invites #4270
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4270
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3176
Author: @RaHehl
Created: 7/7/2023
Status: ❌ Closed
Base:
main← Head:fix-invite-email-casesensitive-and-admin-cannot-delete-invite📝 Commits (1)
6a31fa4Fixed a user is not allowed to accept invite because of email comparisation is case sensitive. Also fixed a admin user is not able to delete invitation in teams he don't own.📊 Changes
3 files changed (+3 additions, -3 deletions)
View changed files
📝
packages/hoppscotch-backend/src/team-invitation/team-invitation.service.ts(+1 -1)📝
packages/hoppscotch-backend/src/team-invitation/team-invite-team-owner.guard.ts(+1 -1)📝
packages/hoppscotch-backend/src/team-invitation/team-invitee.guard.ts(+1 -1)📄 Description
I had the problem that by using MS as an authentication provider, users ended up in the database with email addresses in which the first letter of the first and last name was capitalized, which is basically not a problem. However, this meant that if the team invite was not spelled exactly the same way, it was not possible to accept it.
The second problem was that if I hadn't created the invite or the team, as an admin I couldn't delete the broken invite because it only checked whether I had the necessary role in the team.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.