Skip to content

Commit

Permalink
✔ Kelewataan 😥
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Aug 13, 2023
1 parent 96095f9 commit 90c2ee1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/fansubid/browser/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1691934840526,
"timestamp": 1691935770883,
"index": "/index.html",
"assetGroups": [
{
Expand Down
2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/api/controllers/fansub-/fansub-berkas.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ export class FansubBerkasController {
.leftJoinAndSelect('berkas.fansub_', 'fansub_')
.where('berkas.name ILIKE :query', { query: `%${req.query['q'] ? req.query['q'] : ''}%` })
.andWhere('fansub_.id IN (:...id)', { id: fansubId })
.andWhere('user_.private = :isPrivate', { isPrivate: true })
.andWhere('berkas.private = :isPrivate', { isPrivate: false })
.orWhere('berkas.name ILIKE :query', { query: `%${req.query['q'] ? req.query['q'] : ''}%` })
.andWhere('fansub_.id IN (:...id)', { id: fansubId })
.andWhere('user_.private = :isPrivate', { isPrivate: false });
if (user?.verified) {
// Verified User Can See Private Berkas From Public Profile
Expand Down

0 comments on commit 90c2ee1

Please sign in to comment.