Page MenuHomePhabricator

D9194.id31141.diff
No OneTemporary

D9194.id31141.diff

diff --git a/web/utils/staff-utils.js b/web/utils/staff-utils.js
new file mode 100644
--- /dev/null
+++ b/web/utils/staff-utils.js
@@ -0,0 +1,11 @@
+// @flow
+
+import { useIsCurrentUserStaff } from 'lib/shared/staff-utils.js';
+import { isDev } from 'lib/utils/dev-utils.js';
+
+function useStaffCanSee(): boolean {
+ const isCurrentUserStaff = useIsCurrentUserStaff();
+ return isDev || isCurrentUserStaff;
+}
+
+export { useStaffCanSee };

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 5:09 AM (17 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2448953
Default Alt Text
D9194.id31141.diff (445 B)

Event Timeline