Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995453
super.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
658 B
Referenced Files
None
Subscribers
None
super.ts
View Options
import
Policy
from
"../../chip-types/policy"
;
import
type
Context
from
"../../context"
;
import
DenyAll
from
"../../datastore/deny-all"
;
import
{
AllowAll
}
from
"../../datastore/allow-all"
;
export
default
class
Super
extends
Policy
{
static
type_name
=
"super"
;
async
_getRestrictingQuery
(
context
:
Context
)
{
if
(
context
.
is_super
)
{
return
new
AllowAll
();
}
return
new
DenyAll
();
}
async
checkerFunction
(
context
:
Context
)
{
if
(
context
.
is_super
)
{
return
Policy
.
allow
(
context
.
app
.
i18n
(
"policy_super_allow"
));
}
else
{
return
Policy
.
deny
(
context
.
app
.
i18n
(
"policy_super_deny"
));
}
}
isItemSensitive
=
async
(
_
:
Context
)
=>
false
;
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, Dec 23, 05:00 (13 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
554709
Default Alt Text
super.ts (658 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment