Page MenuHomeSealhub

control-access.remarkup
No OneTemporary

control-access.remarkup

ControlAccess Field

A wrapper around another field, that allows to view/edit the field only to users that match a certain Policy.

Constructor params

new FieldTypes.ControlAccess(new FieldTypes.Text({ min_length: 3 }), {
  target_policies: {
    show: new Policies.Public(),
    edit: new Policies.Roles(["admin"]),
  },
  value_when_not_allowed: "Forbidden",
});

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 22:18 (19 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556980
Default Alt Text
control-access.remarkup (396 B)

Event Timeline