Skip to content

Commit d13f7e3

Browse files
committed
tweak(accessPolicy): hasBESAdminAccess type hint
1 parent b40d2c1 commit d13f7e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import { BES_ADMIN_PERMISSION_GROUP } from '@tupaia/constants';
22

3+
/**
4+
* @param {import('./AccessPolicy').AccessPolicy} accessPolicy
5+
* @returns {boolean}
6+
*/
37
export const hasBESAdminAccess = accessPolicy =>
48
accessPolicy.allowsSome(undefined, BES_ADMIN_PERMISSION_GROUP);

0 commit comments

Comments
 (0)