On the Files page, the top delete button does not check to see if the user has the required permissions to delete the file before sending the call to COMS. This generates confusing messages to the user -- both an error and a successful delete message are shown.
To Reproduce
Steps to reproduce the behavior:
Have READ only permissions granted on a file or bucket to you
Select the checkbox to the left of the file
Use the delete button at the top of the screen
See error and success messages
Expected behavior
After clicking the delete button, BCBox should check the user's permissions and if they don't have them should generate a message to the user alerting them. BCBox should only send a delete request to COMS if the user has the required permissions.
Desktop (please complete the following information):
Describe the bug
On the Files page, the top delete button does not check to see if the user has the required permissions to delete the file before sending the call to COMS. This generates confusing messages to the user -- both an error and a successful delete message are shown.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After clicking the delete button, BCBox should check the user's permissions and if they don't have them should generate a message to the user alerting them. BCBox should only send a delete request to COMS if the user has the required permissions.
Desktop (please complete the following information):