mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Related to: #20296 Changes: - Added `ee/bulk-operations-dashboard`, a Sails.js app that lets users manage configuration profiles and scripts across multiple teams on a Fleet instance. - Added a Github workflow to deploy the app to Heroku - Added a Github workflow to test changes to the bulk operations dashboard.
33 lines
456 B
JavaScript
33 lines
456 B
JavaScript
module.exports = {
|
|
|
|
|
|
friendlyName: 'Redact user',
|
|
|
|
|
|
description: 'Destructively remove properties from the provided User record to prepare it for publication.',
|
|
|
|
|
|
sync: true,
|
|
|
|
|
|
inputs: {
|
|
|
|
user: {
|
|
type: 'ref',
|
|
readOnly: false
|
|
}
|
|
|
|
},
|
|
|
|
|
|
fn: function ({ user }) {
|
|
for (let [attrName, attrDef] of Object.entries(User.attributes)) {
|
|
if (attrDef.protect) {
|
|
delete user[attrName];
|
|
}//fi
|
|
}//∞
|
|
}
|
|
|
|
|
|
};
|
|
|