For what it's worth, having just read through this part of the v2 code: the current behaviour looks intentional rather than accidental. Uploader is kept only as a legacy role — the SystemRole docblock spells it out: "an unscoped file-only staffer doesn't fit the v2 model, where limited staff are client-scoped (Client Manager)", and it's not seeded on fresh installs, only recreated by the v1→v2 migration as "Uploader (Legacy)". So v2 deliberately swapped the scoping axis: v1 scoped a limited staffer to their own uploads, v2 scopes them to their assigned clients (role.client_scoped).
That said, the underlying need seems reasonable, and v2 gets close already — just not all the way:
- A
client_scoped role (Client Manager, or a custom one) with no assigned clients already collapses StaffLibraryScope::files() to where('uploaded_by', self) — i.e. it sees only its own uploads.
- The catch is that the same
assignedClients list also drives who they may share with (assignableClientIds() returns [] with no clients assigned), so such a user can't hand a file to anyone.
So the real gap is that v2 fused two things v1 kept separate: what a staffer can see and whom they may share with. "Own uploads only, but still assign to clients" needs those two decoupled again.
A shape that would fit the v2 model
If you're open to restoring this, the cleanest fit I can see is to turn the role's client_scoped boolean into a small library-scope with three modes — roughly:
all — the whole shared library (today's unscoped staff)
assigned_clients — own uploads + the assigned clients' content (today's client_scoped)
own_uploads — own uploads only (the returning v1 Uploader behaviour)
The nice part is that v2 already centralises this: StaffLibraryScope is the single point that decides visibility, and FilePolicy/FolderPolicy just delegate to its allowsFile()/allowsFolder(), so the file/folder side is one place to add the third mode. Comment visibility follows automatically — VisibleCommentScope and the moderation guards already delegate to the same StaffLibraryScope — so the only sibling that needs its own answer is the activity-log scope, which has an isClientScoped branch of its own (almost certainly: own entries only). A couple of small, well-bounded spots rather than a rewrite.
Existing installs map straight onto the enum (client_scoped = true → assigned_clients, false → all), so nothing changes for current roles. And if you'd like v1 imports to get their old behaviour back without anyone editing a role, the migration tool could map "Uploader (Legacy)" onto own_uploads — that is exactly the semantics those users had in v1. Since that tightens what already-migrated legacy uploaders see on existing v2 installs, it probably deserves a release note rather than happening silently; keeping them on all and letting admins opt in per role is the conservative alternative.
The one call that's yours to make
For an own_uploads staffer, who may they share with — the full client roster (what v1's Uploader did, but it does expose every client's name in their assign dropdown), or a configured subset kept separate from what they can see? That's a policy choice about how much a low-privilege uploader should be shown, not a technical constraint, so I'd rather leave the direction to you.
If you like this shape, I'm happy to put together a PR (scope enum + the StaffLibraryScope/audit/comment branches + the Roles UI selector + migration). And if you'd rather keep Uploader strictly legacy and not add a new mode, that's a perfectly reasonable answer too — just wanted to lay out that it's very doable within the current architecture.