Merge branch 'main' into 21842-improve-sharing
[arvados.git] / services / workbench2 / src / common / isGroup.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { ResourceKind } from "models/resource";
6 import { GroupClass } from "models/group";
7
8 export const isGroup = (resource: any) => {
9     return resource && resource.kind === ResourceKind.GROUP && resource.groupClass === GroupClass.ROLE;
10 };
11