@dhyasama/totem-models 8.26.0 → 8.27.1

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/lib/Account.js CHANGED
@@ -14,7 +14,7 @@ module.exports = function(mongoose, config) {
14
14
  email: { type: String, required: true, unique: true },
15
15
  admin: { type: Boolean },
16
16
  active: { type: Boolean },
17
- role: { type: String, enum: ['admin', 'lp-full', 'lp-names', 'welcome', 'none'] },
17
+ role: { type: String, enum: ['admin', 'lp-full', 'none'] },
18
18
 
19
19
  // Enable this and iLevel links will show on portfolio pages
20
20
  iLevelUser: { type: Boolean },
@@ -712,13 +712,11 @@ module.exports = function(mongoose, config) {
712
712
  'readFilter': {
713
713
  'admin': ['name', 'shortName', 'customer', 'start', 'people', 'documentSlugs', 'transactions', 'contact', 'entered', 'status', 'flagged', 'flags', 'notes'],
714
714
  'lp-full': ['name', 'shortName', 'customer', 'start', 'people', 'documentSlugs', 'transactions', 'contact', 'entered', 'status', 'flagged', 'flags', 'notes'],
715
- 'lp-names': ['name', 'shortName', 'flagged', 'flags', 'customer'],
716
715
  'none': []
717
716
  },
718
717
  'writeFilter': {
719
718
  'admin': ['name', 'shortName', 'customer', 'start', 'people', 'documentSlugs', 'transactions', 'contact', 'entered', 'status', 'flagged', 'flags', 'notes'],
720
719
  'lp-full': ['name', 'shortName', 'customer', 'start', 'people', 'documentSlugs', 'transactions', 'contact', 'entered', 'status', 'flagged', 'flags', 'notes'],
721
- 'lp-names': ['flagged', 'flags', 'customer'],
722
720
  'none': []
723
721
  },
724
722
  'defaultFilterRole': 'none',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.26.0",
3
+ "version": "8.27.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
@@ -381,20 +381,6 @@ describe('Limited Partner', function() {
381
381
 
382
382
  });
383
383
 
384
- it('finds name for an lp if allowed', function(done) {
385
-
386
- LimitedPartner.getById(lp.id, { CUSTOMER_ID: organization._id, role: 'lp-names' }, function(err, lp) {
387
-
388
- should.not.exist(err);
389
- should.exist(lp);
390
- should.exist(lp.name);
391
-
392
- done();
393
-
394
- });
395
-
396
- });
397
-
398
384
  it('adds a flag', function(done) {
399
385
 
400
386
  LimitedPartner.addFlag(lp.id, person._id, 'incorrect phone', organization._id, function(err, result) {