oceanhelm 0.0.16 → 0.0.18
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
|
@@ -329,15 +329,13 @@ export default {
|
|
|
329
329
|
grantAccess(vessel) {
|
|
330
330
|
const { role, vessel: userVessel, categories = [] } = this.userProfile;
|
|
331
331
|
|
|
332
|
-
|
|
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
|
-
|
|
336
|
+
isMarineStaff ||
|
|
338
337
|
(role === 'captain' && userVessel === vessel.name)
|
|
339
338
|
);
|
|
340
|
-
|
|
341
339
|
},
|
|
342
340
|
|
|
343
341
|
getDaysToExpiry(expiry_date) {
|