mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-05 18:58:34 -05:00
Updated General Script Examples (markdown)
@@ -2,6 +2,9 @@ This wiki page is a repository of example scripts contributed by the community.
|
||||
|
||||
## updating document permissions based on the permissions of the documents storage path
|
||||
|
||||
Our usecase is to interpret the storage path as a clients file and only give view permissions to employees that handle this client.
|
||||
This script could be used as a post-processing script if you are confident that the storage path is allways set correctly and not changed later. We just run it at regular intervals.
|
||||
|
||||
```python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
|
Reference in New Issue
Block a user