mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-12 21:58:58 -04:00
fix(vendor): filterPermissions misses DenyGrant
The publicstorageprovider reduces child permissions to what the link grants, field by field, but DenyGrant is not in the list: a child of a view-only link could advertise deny. Same vendored-reva caveat as checkGraphDrivesPath, goes into the reva PR later.
This commit is contained in:
1 parent
d18c1a1edb
commit
b045b2be86
1 file changed
+1
Generated
Vendored
+1
@@ -871,6 +871,7 @@ func filterPermissions(l *provider.ResourcePermissions, r *provider.ResourcePerm
|
||||
l.RestoreRecycleItem = l.RestoreRecycleItem && r.RestoreRecycleItem
|
||||
l.Stat = l.Stat && r.Stat
|
||||
l.UpdateGrant = l.UpdateGrant && r.UpdateGrant
|
||||
l.DenyGrant = l.DenyGrant && r.DenyGrant
|
||||
}
|
||||
|
||||
func (s *service) ListFileVersions(ctx context.Context, req *provider.ListFileVersionsRequest) (*provider.ListFileVersionsResponse, error) {
|
||||
|
||||
Reference in new issue
Block a user