mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Updated General Script Examples (markdown)
parent
2bacc6256a
commit
58e6808038
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user