[SharingNg] user with role Uploader
trying to reshare a resource returns 500
status code
#8112
Labels
Milestone
Uploader
trying to reshare a resource returns 500
status code
#8112
Describe the bug
When a resource is shared with a user with
Uploader
role, and that user tries to reshare it with other users, it is supposed to fail with proper status code and message as user with roleUploader
cannot reshare resource, but it is currently returning status code500
.Also, user with roles like
Viewer
tries to reshare resouce to other users with higher roles likeEditor, or Manager
, it also returns500
status code.Steps to reproduce
Alice
creates a folderFolderToShare
Alice
shares the folder with userBrian
with roleUploader
using SharingNgBrian
tries to reshare folderFolderToShare
to userCarol
withViewer
roleExpected behavior
The share should fail with status code
403
and error message.Actual behavior
The share fails with status code
500
.The text was updated successfully, but these errors were encountered: