You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hkirat bhai , in the following test case : test("User should not be able to delete a space created by another user", async () => { const response = await axios.post(${BACKEND_URL}/api/v1/space, { "name": "Test", "dimensions": "100x200", }, { headers: { authorization: Bearer ${userToken}`
}
})
` it says that user cannot able to delete the space the other user created , so in here why admin have to delete the space(and "admin cannot able to delete the user space" can be taken as seperate test case)
The text was updated successfully, but these errors were encountered:
surya-moorthy
changed the title
describing about one of the issues.
describing about one of the test case
Nov 3, 2024
i think if certain user created spaces and not deleted it for long time then it will just incrz the storage so admin should able to delete spaces but it need's to have condition defined after certain period you can delete it or create any function that doesn't need userId to do this it is only accessible by admin so that they should delete that without violating user privacy
To be precise, we could rename the current test to "No user (including admin) can delete another user's space" or split it into two cases would be clearer:
@hkirat bhai , in the following test case :
test("User should not be able to delete a space created by another user", async () => { const response = await axios.post(
${BACKEND_URL}/api/v1/space, { "name": "Test", "dimensions": "100x200", }, { headers: { authorization:
Bearer ${userToken}`}
})
` it says that user cannot able to delete the space the other user created , so in here why admin have to delete the space(and "admin cannot able to delete the user space" can be taken as seperate test case)
The text was updated successfully, but these errors were encountered: