feat(permissions): effective inspector polish and cross-links (v0.8.746)
Phase 779 adds copy effective-permissions deep links with optional memberId, live breakdown refresh while the inspector is open, and a cross-link to channel permissions for the focused role. Closes deferred P778-42. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
+12
@@ -5335,6 +5335,18 @@ class HeadlessSession {
|
||||
if (nav.effectivePermFocusRoleId !== role.id) {
|
||||
throw new Error('nav effectivePermFocusRoleId mismatch')
|
||||
}
|
||||
const ownerId = this.platform.identity.user?.id
|
||||
if (ownerId) {
|
||||
const urlMem = `${url}&memberId=${encodeURIComponent(ownerId)}`
|
||||
const parsedMem = parsePearcordDeepLink(urlMem)
|
||||
if (parsedMem?.editEffectivePermissions?.memberId !== ownerId) {
|
||||
throw new Error('deep link parse missing memberId')
|
||||
}
|
||||
const navMem = await this.platform.navigateDeepLink(urlMem)
|
||||
if (navMem.effectivePermFocusMemberId !== ownerId) {
|
||||
throw new Error('nav effectivePermFocusMemberId mismatch')
|
||||
}
|
||||
}
|
||||
return { guildId, channelId: text.id, roleId: role.id }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user