Commit 84fde9fc authored by Revant Nandgaonkar's avatar Revant Nandgaonkar

fix(communication-server): Storage Component

any valid user can get basic details of cloud storage

fix profile photo upload
parent c0463b92
......@@ -52,8 +52,7 @@ export class CloudStorageController {
}
@Get('v1/getOne/:uuid')
@Roles(ADMINISTRATOR)
@UseGuards(TokenGuard, RoleGuard)
@UseGuards(TokenGuard)
async findOne(@Param('uuid') uuid: string) {
const storage: Storage = await this.storage.findOne({ uuid });
storage.accessKey = undefined;
......@@ -92,7 +91,7 @@ export class CloudStorageController {
@Post('cloud/uploadFile/:uuid')
@UseInterceptors(FileInterceptor('file'))
async testing(
async uploadFile(
@UploadedFile('file') file,
@Req() req,
@Body('permission') permission,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment