mirror of
https://github.com/vale981/grapher
synced 2025-03-10 12:56:41 -04:00
20 lines
409 B
JavaScript
20 lines
409 B
JavaScript
![]() |
import { Mongo } from 'meteor/mongo';
|
||
|
|
||
|
const Items = new Mongo.Collection('security_items');
|
||
|
const SubItems = new Mongo.Collection('security_subitems');
|
||
|
|
||
|
export { Items, SubItems };
|
||
|
|
||
|
if (Meteor.isServer) {
|
||
|
Items.expose({
|
||
|
firewall(filters, options, userId) {
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
SubItems.expose({
|
||
|
firewall(filters, options, userId) {
|
||
|
filters._id = false;
|
||
|
}
|
||
|
});
|
||
|
}
|