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 ) 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;}}
e66dd2c25295918fb28c6236b95f392c717c380a
The text was updated successfully, but these errors were encountered:
application specific: Ensure only allowed person (usually admin ) is allowed to delete
flox/backend/src/flox/modules/file/file.resolver.ts
Line 70 in 480f934
e66dd2c25295918fb28c6236b95f392c717c380a
The text was updated successfully, but these errors were encountered: