Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32768846
staff-utils.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
340 B
Referenced Files
None
Subscribers
None
staff-utils.js
View Options
// @flow
import
bots
from
'../facts/bots.js'
;
import
staff
from
'../facts/staff.js'
;
function
isStaff
(
userID
:
string
)
:
boolean
{
if
(
staff
.
includes
(
userID
))
{
return
true
;
}
for
(
const
key
in
bots
)
{
const
bot
=
bots
[
key
];
if
(
userID
===
bot
.
userID
)
{
return
true
;
}
}
return
false
;
}
export
{
isStaff
};
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Jan 9, 12:53 PM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5901864
Default Alt Text
staff-utils.js (340 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment