Skip to content

Commit adb9f78

Browse files
committed
Document viewer asset resources
1 parent 8afc2ed commit adb9f78

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/configuration/ResourcesPermissions.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The following resource types are available:
3535
| `╰─ WFS Layer (delete)`| WFS layer for deleting features. |
3636
| `Search facet` | Fulltext search facet, see [Search permissions](../topics/Search.md#search-permissions). |
3737
| `Viewer task` | Viewer task key, see [Viewer task permissions](#viewer-task-permissions). |
38+
| `Viewer asset` | Viewer asset path, see [Viewer asset permissions](#viewer-asset-permissions). |
3839
| `Document template` | Document template name, see [Report permissions](../topics/Reports.md#Permissions). |
3940
| `Theme info link` | Theme info link name, see [theme info links](ThemesConfiguration.md#theme-info-links). |
4041
| `Plugin` | Plugin name of [Plugin data](ThemesConfiguration.md#plugin-data) entries. |
@@ -84,7 +85,7 @@ For more detailed [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_
8485

8586
## Viewer task permissions<a name="viewer-task-permissions"></a>
8687

87-
The `Viewer task` resource defines viewer functionalities (e.g. `Print` or `MapExport`) that can be restricted or permitted.
88+
The `Viewer task` resource defines viewer functionalities (e.g. `Print` or `MapExport`) which can be restricted.
8889

8990
The resource name will be matched against:
9091

@@ -96,6 +97,14 @@ The resource name will be matched against:
9697

9798
Restricted viewer task items are then removed from the menu and toolbar in the map viewer.
9899

100+
## Viewer asset permissions<a name="viewer-asset-permissions"></a>
101+
102+
The `Viewer asset` resource defines viewer assets (i.e. files below the QWC assets folder) which can be restricted.
103+
104+
The resource name is a file path below the assets folder (i.e. `pdfs/mydocument.pdf` for `<baseurl>/assets/pdfs/mydocument.pdf`).
105+
106+
Accessing a viewer asset which is not permitted will result in a `404 Not Found` error.
107+
99108
## WFS/OAPIF permissions<a name="wfs-permissions"></a>
100109

101110
WFS and OGC API Features (OAPIF) services are disabled by default and need to be explicitly permitted to be exposed by the `qwc-ogc-service`. The services also need to be published in in `QGIS → Project Properties → QGIS Server → WFS/OAPIF`.

0 commit comments

Comments
 (0)