-
Notifications
You must be signed in to change notification settings - Fork 14
BC-10804 - Bug fix for Room Admin Table Deleting Members #3922
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
Conversation
| } | ||
| if (currentUserId.value && isRoomOwner(currentUserId.value)) { | ||
| return !isRoomOwner(item.userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there can be only one person as room owner and we checked already in the if above do we still need this check? would currentUserId.value === item.userId be enough? But I am really confused by the whole topic so... :)
| } | ||
| if (currentUserId.value && isRoomOwner(currentUserId.value)) { | ||
| return !isRoomOwner(item.userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the method isRoomOwner is a suitable one to check if a user has this room role which is not the currentUser.
But using it together now with the currentUser somehow confuses the logic within the method for me. What exactly do we want to allow with it? Maybe we can write another method for this usecase (which is still unclear to me) to check for that specific property of the currentUser we want to check for.
|
closed because the ticket number and the branch name were incorrect. The correct PR is: #3924 |
|
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
|


Short Description
Links to Ticket and related Pull-Requests
Changes
Data-security
Deployment
New Repos, NPM packages or vendor scripts
Screenshots of UI changes
Checklist before merging