()
| 363 | } |
| 364 | |
| 365 | publish () { |
| 366 | if (this.isPublished()) { throw new Error('Can\'t publish what\'s already-published. Can\'t kill what\'s already dead.') } |
| 367 | return this.set('permissions', this.get('permissions', true).concat({ access: 'read', target: 'public' })) |
| 368 | } |
| 369 | |
| 370 | static isObjectID (s) { |
| 371 | return (s.length === 24) && (__guard__(s.match(/[a-f0-9]/gi), x => x.length) === 24) |
no test coverage detected