|
|
@ -301,7 +301,14 @@ export class ActivitiesController { |
|
|
id |
|
|
id |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (originalActivity?.userId !== this.request.user.id) { |
|
|
if (!originalActivity) { |
|
|
|
|
|
throw new HttpException( |
|
|
|
|
|
getReasonPhrase(StatusCodes.NOT_FOUND), |
|
|
|
|
|
StatusCodes.NOT_FOUND |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (originalActivity.userId !== this.request.user.id) { |
|
|
throw new HttpException( |
|
|
throw new HttpException( |
|
|
getReasonPhrase(StatusCodes.FORBIDDEN), |
|
|
getReasonPhrase(StatusCodes.FORBIDDEN), |
|
|
StatusCodes.FORBIDDEN |
|
|
StatusCodes.FORBIDDEN |
|
|
|