1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/dashboard/client/api/rbac.ts
Jari Kolehmainen b87e750610 dynamic dashboard ui based on rbac rules
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-01 15:48:31 +03:00

7 lines
193 B
TypeScript

import { configStore } from "../config.store";
export function isAllowedResource(resource: string) {
const { allowedResources } = configStore;
return allowedResources.includes(resource)
}