Skip to main content

canAccessSoftware

sabrobotix-suite


sabrobotix-suite / lib/roles / canAccessSoftware

Function: canAccessSoftware()

canAccessSoftware(role): boolean

Defined in: lib/roles.ts:249

The software page is for everybody who signs in.

Harlock is the ground control station these users fly with, so a client, an operator and an administrator all have the same reason to fetch the installer. Whether they may actually download it is a different question, decided by licence rather than by role in lib/software/harlock.ts: this only opens the page where the answer — including "no, and here is why" — can be read.

Parameters​

role​

string | null | undefined

Returns​

boolean