1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ResourceKind } from "models/resource";
6 import { GroupClass } from "models/group";
8 export const isGroup = (resource: any) => {
9 return resource && resource.kind === ResourceKind.GROUP && resource.groupClass === GroupClass.ROLE;