@getcommunity/gc-validators 0.0.176 → 0.0.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -473,7 +473,7 @@ declare const ROLE_PERMISSIONS: {
|
|
|
473
473
|
readonly list: true;
|
|
474
474
|
readonly create: true;
|
|
475
475
|
readonly update: (u: AuthorizedUserDocument, p: ClientUserDocumentStatus, d: CommentDocument | undefined) => boolean;
|
|
476
|
-
readonly delete:
|
|
476
|
+
readonly delete: (u: AuthorizedUserDocument, p: ClientUserDocumentStatus, d: CommentDocument | undefined) => boolean;
|
|
477
477
|
readonly report: true;
|
|
478
478
|
};
|
|
479
479
|
readonly client: {
|
package/dist/index.d.ts
CHANGED
|
@@ -473,7 +473,7 @@ declare const ROLE_PERMISSIONS: {
|
|
|
473
473
|
readonly list: true;
|
|
474
474
|
readonly create: true;
|
|
475
475
|
readonly update: (u: AuthorizedUserDocument, p: ClientUserDocumentStatus, d: CommentDocument | undefined) => boolean;
|
|
476
|
-
readonly delete:
|
|
476
|
+
readonly delete: (u: AuthorizedUserDocument, p: ClientUserDocumentStatus, d: CommentDocument | undefined) => boolean;
|
|
477
477
|
readonly report: true;
|
|
478
478
|
};
|
|
479
479
|
readonly client: {
|
package/dist/index.js
CHANGED
|
@@ -490,7 +490,10 @@ var ROLE_PERMISSIONS = {
|
|
|
490
490
|
var _a;
|
|
491
491
|
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
492
492
|
},
|
|
493
|
-
delete:
|
|
493
|
+
delete: (u, p, d) => {
|
|
494
|
+
var _a;
|
|
495
|
+
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
496
|
+
},
|
|
494
497
|
report: true
|
|
495
498
|
},
|
|
496
499
|
client: {
|