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:
parent
21231536cb
commit
74e6b4bcf7
2 changed files with 5 additions and 1 deletions
|
@ -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(',')}]`);
|
||||
}
|
||||
|
|
|
@ -4,6 +4,9 @@ const _ = require('lodash');
|
|||
const Product = ghostBookshelf.Model.extend({
|
||||
tableName: 'products',
|
||||
|
||||
actionsCollectCRUD: true,
|
||||
actionsResourceType: 'product',
|
||||
|
||||
defaults: {
|
||||
active: true,
|
||||
visibility: 'none',
|
||||
|
|
Loading…
Add table
Reference in a new issue