We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hasBESAdminAccess
1 parent b40d2c1 commit d13f7e3Copy full SHA for d13f7e3
packages/access-policy/src/permissions.js
@@ -1,4 +1,8 @@
1
import { BES_ADMIN_PERMISSION_GROUP } from '@tupaia/constants';
2
3
+/**
4
+ * @param {import('./AccessPolicy').AccessPolicy} accessPolicy
5
+ * @returns {boolean}
6
+ */
7
export const hasBESAdminAccess = accessPolicy =>
8
accessPolicy.allowsSome(undefined, BES_ADMIN_PERMISSION_GROUP);
0 commit comments