canOperate property

bool get canOperate

Whether these roles permit changing the fleet, as opposed to watching it.

The Hub is the real gate; this only decides what a client bothers to offer, so that a viewer is not shown buttons that will be refused.

Implementation

bool get canOperate => roles.contains('admin') || roles.contains('operator');