-
Notifications
You must be signed in to change notification settings - Fork 4
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
Validation in create group API #9
Comments
@ClawedCatalyst I would like work on this |
lakshay-saini-au8 sure you can |
I would like to contribute to this issue. Is anybody working with it? |
you can start on this @kiranrokkam09 :) |
You are saying that only authenticated users can make a POST request to the endpoint. |
Yes only authenticated and id of user should be the authenticated user. |
@ClawedCatalyst you can check the pull request made by me. I added the following code: |
@ClawedCatalyst Sorry for the dealy |
In
mailer/views.py
, at line 31, there is a POST API for creating a group.Currently, there seems to be no validation regarding the user ID.
Here's the issue:
I can simply pass a user token and create a group with a different user ID. Consequently, the group is added to the account associated with the user ID that was passed.
Here's what should happen:
When a different user's ID is passed, it should raise an error, indicating 'permission denied.'"
The text was updated successfully, but these errors were encountered: