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
// TODO application specific: Ensure only allowed person (usually admin or file owner) is allowed to delete
): Promise<PrivateFile>{returnthis.fileService.getPrivateFile(getPrivateFileArgs);}/** * Deletes a private file * @param {DeleteFileInput} deleteFileInput - contains UUID * @returns {Promise<PrivateFile>} - the file that was deleted */
@LoggedIn()// TODO application specific: set appropriate guards here
@Mutation(()=>User)asyncdeletePrivateFile(
@Args('deleteFileInput')deleteFileInput: DeleteFileInput,): Promise<PrivateFile>{// TODO application specific: Ensure only allowed person (usually admin or file owner) is allowed to deletereturnthis.fileService.deleteFile(deleteFileInput,false,)asunknownasPrivateFile;}/** * Deletes a public file * @param {DeleteFileInput} deleteFileInput - contains UUID * @returns {Promise<PrivateFile>} - the file that was deleted */
@LoggedIn()// TODO application specific: set appropriate guards here
@Mutation(()=>User)asyncdeletePublicFile(
@Args('deleteFileInput')deleteFileInput: DeleteFileInput,): Promise<PublicFile>{// TODO application specific: Ensure only allowed person (usually admin ) is allowed to deletereturnthis.fileService.deleteFile(deleteFileInput,true,)asunknownasPublicFile;}}
d6668fa7e012f399c9446efb24d8acddbd2c93f9
The text was updated successfully, but these errors were encountered:
application specific: Ensure only allowed person (usually admin or file owner) is allowed to delete
flox/backend/src/flox/modules/file/file.resolver.ts
Line 52 in 480f934
d6668fa7e012f399c9446efb24d8acddbd2c93f9
The text was updated successfully, but these errors were encountered: