Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3180680
D9194.id31141.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
445 B
Referenced Files
None
Subscribers
None
D9194.id31141.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9194: [web] introduce useStaffCanSee hook for web
Attached
Detach File
Event Timeline
Log In to Comment