Enforce Permissions on API #5
Loading…
x
Reference in New Issue
Block a user
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?
For both posting the the listview and patch/put/get for the details view, add a permission that prevents server non-admin users from making writes.
This may require a discord api call which is why this should only be checked on a per-subscription interaction basis, oppose to when loading many, as many api calls will cause rate limits and slow response times.
With the changes mentioned in issue #4, I've implemented server side filtering so that only certain user's can interact with the api for subscriptions, but as of now the user can impersonate admins or server owners, by modifying the data returned to the server upon creating a new instance of savedguild.
Prevent subscription write changes from non-adminsto Enforce Permissions on APICurrently users are restricted to accessing subscriptions and filters that they are permitted to view, meaning the original purpose of this ticket is completed.
However, the latest scope of the project includes tracked content, representing content from RSS feeds that has been processed.
Access to tracked content is not limited by permissions as the other objects are, this should be fixed.
I have limited access to various api endpoints, including tracked content, to the proper authenticated users.