( actorRole: CollabRole, targetRole: CollabRole )
| 40 | } |
| 41 | |
| 42 | export function canChangeRole( |
| 43 | actorRole: CollabRole, |
| 44 | targetRole: CollabRole |
| 45 | ): boolean { |
| 46 | // Owner can change any role; collaborators cannot manage access at all |
| 47 | return actorRole === "owner" && targetRole !== "owner"; |
| 48 | } |
| 49 | |
| 50 | // ─── Share Links ────────────────────────────────────────────────────────────── |
| 51 |
nothing calls this directly
no outgoing calls
no test coverage detected