DM creation blocked for non-admin workspace members (channel.create gate too strict) #30
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_collab#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Non-admin workspace members can't start DMs. Clicking another user in the DM picker surfaces:
Reproduced as
viewer_test@example.com(workspace 1 member, no admin rights) trying to DMsameh.Root cause
channel.createroutes every kind throughpermissions::check_permission("channel.create", ...), which requireschannel_manageorworkspace_admin. That admin gate is correct for workspace-level public/private channels but wrong for DM/group_dm — Slack-parity says any workspace member can DM any other.Surfaced in
#10 dogfooding thread while testing
viewer_test's ability to start a DM with the canvas owner.Fix in
PR linked below.