oceanhelm 0.0.16 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oceanhelm",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Oceanhelm's highly customizable library",
5
5
  "private": false,
6
6
  "type": "module",
@@ -329,15 +329,13 @@ export default {
329
329
  grantAccess(vessel) {
330
330
  const { role, vessel: userVessel, categories = [] } = this.userProfile;
331
331
 
332
- // Assign marine-staff only
333
- this.userRole = categories.includes('marine-staff') ? 'marine-staff' : 'staff';
332
+ const isMarineStaff = categories.includes('marine-staff');
334
333
 
335
334
  return (
336
335
  role === 'owner' ||
337
- role === 'marine-staff' ||
336
+ isMarineStaff ||
338
337
  (role === 'captain' && userVessel === vessel.name)
339
338
  );
340
-
341
339
  },
342
340
 
343
341
  getDaysToExpiry(expiry_date) {