strapi-plugin-comments 2.2.11 → 2.2.13
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/README.md +1 -1
- package/admin/src/components/ActionButton/styles.d.ts +1 -1
- package/admin/src/components/AdminAvatar/styles.d.ts +2 -2
- package/admin/src/components/DiscussionThreadItem/styles.d.ts +3 -3
- package/admin/src/components/DiscussionThreadItemActions/styles.d.ts +1 -1
- package/admin/src/components/DiscussionThreadItemApprovalFlowActions/styles.d.ts +1 -1
- package/admin/src/components/DiscussionThreadItemFooter/styles.d.ts +2 -2
- package/admin/src/components/FormSwitch/styles.d.ts +1 -1
- package/admin/src/components/IconButton/styles.d.ts +1 -1
- package/admin/src/components/LoadingIndicatorOverlay/styles.d.ts +1 -1
- package/admin/src/components/ModeratorResponse/styles.d.ts +1 -1
- package/admin/src/components/StatusBadge/styles.d.ts +1 -1
- package/admin/src/components/Wysiwyg/EditorLayout.d.ts +1 -1
- package/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +6 -6
- package/admin/src/custom-fields/comments/components/input/input.js +5 -5
- package/admin/src/custom-fields/comments/components/input/utils.d.ts +6 -15
- package/admin/src/custom-fields/comments/components/input/utils.js +8 -20
- package/admin/src/pages/Details/components/DetailsFilters/styles.d.ts +1 -1
- package/admin/src/pages/Discover/components/DiscoverTableRow/styles.d.ts +1 -1
- package/admin/src/pages/Reports/components/ReportsTableRow/styles.d.ts +1 -1
- package/admin/src/pages/Settings/components/RestartAlert/styles.d.ts +1 -1
- package/admin/src/reducers.d.ts +1 -1
- package/admin/src/translations/index.d.ts +1 -1
- package/admin/src/translations/index.js +2 -0
- package/admin/src/translations/pl.json +192 -0
- package/package.json +4 -4
- package/server/controllers/utils/functions.d.ts +1 -1
- package/server/graphql/mutations/createComment.d.ts +1 -1
- package/server/graphql/mutations/removeComment.d.ts +1 -1
- package/server/graphql/mutations/updateComment.d.ts +1 -1
- package/server/graphql/queries/findAllFlat.d.ts +1 -1
- package/server/graphql/queries/findAllInHierarchy.d.ts +1 -1
- package/server/graphql/queries/findAllPerAuthor.d.ts +1 -1
- package/server/services/admin.js +1 -1
- package/server/services/client.js +2 -1
- package/server/services/common.js +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -249,7 +249,7 @@ module.exports = ({ strapi }) => ({
|
|
|
249
249
|
: relatedStringId;
|
|
250
250
|
const isEnabledCollection = await this.isEnabledCollection(uid);
|
|
251
251
|
const enabledCollections = await this.getConfig(constants_1.CONFIG_PARAMS.ENABLED_COLLECTIONS, []);
|
|
252
|
-
if (!isEnabledCollection) {
|
|
252
|
+
if (enabledCollections.length > 0 && !isEnabledCollection) {
|
|
253
253
|
throw new error_1.default(403, `Action not allowed for collection '${uid}'. Use one of: ${enabledCollections.join(", ")}`);
|
|
254
254
|
}
|
|
255
255
|
return [uid, relatedId];
|