0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Collected Tier CRUD actions

refs https://github.com/TryGhost/Toolbox/issues/356

- this allows collection of CRUD events for Tiers but we currently don't
  show them in the UI until it's overhauled to avoid being monotonously
  long
This commit is contained in:
Daniel Lockyer 2022-08-24 12:52:24 +02:00
parent 21231536cb
commit 74e6b4bcf7
No known key found for this signature in database
GPG key ID: D21186F0B47295AD
2 changed files with 5 additions and 1 deletions

View file

@ -26,7 +26,8 @@ export default class AuditLogEventFilter extends Helper {
filterParts.push(`event:-[${excludedEventsArray.join(',')}]`);
}
const excludedResourcesArray = Array.from(excludedResourcesSet).reject(isBlank);
const IGNORED_RESOURCES = ['product'];
const excludedResourcesArray = Array.from(excludedResourcesSet).concat(IGNORED_RESOURCES).reject(isBlank);
if (excludedResourcesArray.length > 0) {
filterParts.push(`resource_type:-[${excludedResourcesArray.join(',')}]`);
}

View file

@ -4,6 +4,9 @@ const _ = require('lodash');
const Product = ghostBookshelf.Model.extend({
tableName: 'products',
actionsCollectCRUD: true,
actionsResourceType: 'product',
defaults: {
active: true,
visibility: 'none',