Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

permissions documentation expansion #288

@notebk

Description

@notebk

Expanding Permissions Documentation

The documentation has a section where it discusses req.user._permissions but it's in the module and template section and not in the permissions section. I think it makes sense to include it in the permissions section so it's easier to find.

Proposed solution

after the section "Checking permissions in your own code" I would add this:

To check for permissions in templates with nunjucks, use data.user._permissions, an object, with boolean properties for permissions (e.g., admin: true or simply {} if there is no user).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions