mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
fix(permissions): 🐛 Improved the security around the role "Manage Own Requests" (#4397)
* Secure ManageOwnRequests API paths Fixes #4391 * Hide delete request option if user is not allowed * Refactor CheckOwnRequests * Fix deleteRequest test * Improve performance and clean up code * Fix manageOwnRequests check * Refactor CheckCanManageRequest
This commit is contained in:
parent
4410790bc0
commit
334a32bca4
18 changed files with 106 additions and 36 deletions
|
@ -39,7 +39,7 @@ describe("Requests Tests", () => {
|
|||
row.optionsDelete.click();
|
||||
|
||||
cy.wait('@deleteRequest').then((intercept) => {
|
||||
expect(intercept.response.body).is.true;
|
||||
expect(intercept.response.body.result).is.true;
|
||||
})
|
||||
|
||||
row.title.should('not.exist');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue