Session Types
Intro
When you launch a session with DocViewer, the values of
permissions
determines the mode the session launches in.
Annotations Disabled
If the permissions
parameter is not provided, the document is displayed
without any annotation tools, and no annotations are displayed.
In this mode, DocViewer is just a document viewer. Zoom and fullscreen are
still enabled. This mode is used in Canvas whenever Canvas wants to load an
in-page file preview.
Readonly
permissions: read
The document is displayed without any annotation tools, but the annotations are displayed. This mode is useful when you want someone to be able to see what has been done without being able to contribute themselves. Canvas uses this mode for Observers. (Parents can see annotations on their child's document, but they cannot add annotations.)
Readwrite
permissions: readwrite
The document is displayed with annotation tools enabled, and all annotations displayed. This is the standard mode for Canvas Speedgrader. A user can add, edit, and delete their own annotations, and reply to any annotation or comment.
Manage
permissions: readwritemanage
This mode is exactly the same as Readwrite Mode, with the addition that the user can delete any annotation. The user with manage permissions cannot edit other users' annotations, but they can delete them. When an annotation is deleted by someone other than the creator, it will still be visible to the creator (and only the creator) with a visual indication that it has been deleted.