mirror of
https://github.com/suitenumerique/drive.git
synced 2026-08-17 20:15:40 +02:00
External services consuming the resource server API may need items they create to carry specific attributes, typically quota_excluded so their uploads do not consume the user quota. The new EXTERNAL_API_AUD_ITEM_ATTRIBUTES setting maps a token audience to the attributes applied at creation. The lookup is a hook on the item viewset overridden only in the resource server viewset, so both the root create and children creation paths are covered while the regular API remains unaffected.