projectdoc Toolbox

A switch to control the assumed role of the logged in user. The property is set as a property of the user's private space.

Identifier
pretend-being-a
Data Type
string
Value Range
reader, writer, printer

Some macros provide a different view for authors (with editing permissions), readers (without editing permissions), and printers (like reader and applying Print Quirk Modes). This property allows to change the behaviour of macros without touching the user's privileges.

 

The pretend value of printer is available since version 1.5.0.

If an author wants to see, how a document is presented to a reader, the property pretend-being-a is set to reader.

Setting the property to writer is currently pointless since a user having the appropriate roles to set it, are in fact writers.

It is important to note that this property is set in the author's space homepage!

Since 4.5

 

Since version 4.5 the mode printer is set as default in case PDF or Word is selected.

Resources

Being a Pretender
Authors occasionally need to have a look at a page as if they where in the role of a reader. The pretend-being-a user space property supports switching roles. With the use of the Web API Extension and the Bookmarklets Extension switching roles is now really easy!
Views on Documents
Switch views on documents dependent on the user's role by setting space properties in the user's homepage.
Pretender
A Bookmarklet that changes the pretended role of a user.