Measurable Success «10 Checkpoints for Future-Proof Enterprise CMS» White Paper
Measurable Success - White Paper

isRestricted()

Indicates whether or not the Obj is publicly accessible, i.e. visible to anonymous visitors.

obj = Scrivito.getClass("Report").all().first();
const publiclyReadable = !obj.isRestricted();

Restricted CMS objects are hidden unless the visitor has been authenticated.

Returns

Boolean - true if this Obj requires authentication to read its data.

See also

restrict, unrestrict