From aee1bde0ba574c66e9b2a2de5ead4b4165c980ad Mon Sep 17 00:00:00 2001 From: Herman Snevajs Date: Wed, 16 Sep 2026 15:08:28 +0200 Subject: [PATCH] Document @mm_project_role variable --- src/layer/variables/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layer/variables/index.md b/src/layer/variables/index.md index 4d2ca105..5d8ebe3d 100644 --- a/src/layer/variables/index.md +++ b/src/layer/variables/index.md @@ -24,6 +24,7 @@ The adds several variables that can be used in QGIS expressio | `@mm_project_name` | Text (string) | `My project` | Name of the active project | | `@mm_project_full_name` | Text (string) | `my-team/My project` | Workspace and project name joined with a forward slash | | `@mm_project_version` | Number (integer) | `9` | Current version of the active project | +| `@mm_project_role` | Text (string) | `editor` | Role of the currently logged in user on the active project - one of `reader`, `editor`, `writer` or `owner`. | A common use case is to use `@mm_username` or `@mm_user_email` as the [default value](../default-values/) for one of the fields in a survey layer to automatically track who has added (and/or modified) a particular record.