Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F8930126
logged_in.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
555 B
Referenced Files
None
Subscribers
None
logged_in.js
View Options
"use strict"
;
const
Promise
=
require
(
"bluebird"
);
const
DENY
=
[{
$match
:
{
_id
:
{
$exists
:
false
}
}
}];
const
ACCEPT
=
[{
$match
:
{
_id
:
{
$exists
:
true
}
}
}];
module
.
exports
=
{
name
:
"logged_in"
,
get_pre_aggregation_stage
:
function
(
context
)
{
if
(
context
.
user_id
)
{
return
Promise
.
resolve
(
ACCEPT
);
}
else
{
return
Promise
.
resolve
(
DENY
);
}
},
checker_function
:
function
(
context
)
{
if
(
context
.
user_id
)
{
return
Promise
.
resolve
();
}
else
{
return
Promise
.
reject
(
"Only logged-in users can perform this action."
);
}
},
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 21, 01:18 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
949776
Default Alt Text
logged_in.js (555 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment