mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
it is now possible to grant access to users other than `${u}` (the user which the volume belongs to) previously, permissions did not apply correctly to IdP volumes due to the way `${u}` and `${g}` was expanded, which was a funky iteration over all known users/groups instead of... just expanding them? also adds another sanchk that a volume's URL must contain a `${u}` to be allowed to mention `${u}` in the accs list, and similarly for `${g}` / `@${g}` since users can be in multiple groups
25 lines
287 B
YAML
25 lines
287 B
YAML
# -*- mode: yaml -*-
|
|
# vim: ft=yaml:
|
|
|
|
[global]
|
|
idp-h-usr: x-idp-user
|
|
idp-h-grp: x-idp-group
|
|
|
|
[/get/${u}]
|
|
/get/${u}
|
|
accs:
|
|
g: *
|
|
r: ${u}, @su
|
|
m: @su
|
|
|
|
[/priv/${u}]
|
|
/priv/${u}
|
|
accs:
|
|
r: ${u}, @su
|
|
m: @su
|
|
|
|
[/team/${g}/${u}]
|
|
/team/${g}/${u}
|
|
accs:
|
|
r: @${g}
|