8000 fix(huddl): tie organizer-only huddl details to the current role by mwoods79 · Pull Request #726 · huddlz-hq/huddlz · GitHub
[go: up one dir, main page]

Skip to content

fix(huddl): tie organizer-only huddl details to the current role - #726

Merged
mwoods79 merged 1 commit into
mainfrom
t3/restrict-creator-access
Nov 30, 2026
Merged

mwoods79 merged 1 commit into
mainfrom
t3/restrict-creator-access

Conversation

@mwoods79
@mwoods79 mwoods79 commented Nov 30, 2026 •
Copy link
Copy Markdown
Contributor

Summary

Who reads a draft, a private cancelled huddl, or a cancellation reason:

 draft, or cancelled huddl outside public view
-  the person who created it
   the group's owner
   an organizer of the group
   (cancelled only) a person with RSVP history

 cancellation reason
-  the person who created it
   the group's owner
   an organizer of the group
   a person with RSVP history

This covers reading a huddl through its page, JSON:API, GraphQL and MCP. Access there now follows the role a person holds in the group at the time of the read. Someone made a member again, or removed from the group, no longer keeps the organizer view of huddlz they created, including the dates of a series they started.

Nobody organizing a group loses anything: only an owner or organizer can create a huddl, and an owner who transfers the group stays an organizer.

Evidence

test/features/former_organizer_access.feature, each scenario through JSON:API and GraphQL.

  • Before:
    former organizer reads a draft they created            -> returned as "draft"          FAIL
    former organizer, no RSVP, private cancelled huddl     -> returned as "cancelled"      FAIL
    former organizer, no RSVP, public cancelled huddl      -> cancellation reason included FAIL
    
    After:
    former organizer reads a draft they created            -> not found                    pass
    former organizer, no RSVP, private cancelled huddl     -> not found                    pass
    former organizer, no RSVP, public cancelled huddl      -> cancelled, reason withheld   pass
    former organizer who kept their RSVP, cancelled huddl  -> cancelled, with reason       pass (unchanged)
    organizer reads a draft they created                   -> draft                        pass (unchanged)
    former owner, still an organizer, reads their draft    -> draft                        pass (unchanged)
    

Merge Danger

Door: two-way

No schema or data change; reverting restores the previous rule.

Blast Radius: narrow

Only people who created a huddl and no longer own or organize its group see less. Creating a huddl still RSVPs its creator, so a former organizer who kept that RSVP still reads the cancelled huddl and its reason, as any person with RSVP history does. The photo gallery rule (a huddl's creator can add, view and remove photos) is unchanged.

Not covered here: notifications. An RSVP holder is still told about edits to a huddl whether or not they can open it, and a failed series generation is still reported to the series' creator. Those are handled separately. An archived public group's cancelled huddlz stay readable by its members, as the archival scenarios require.

Drafts, private cancelled huddlz and the cancellation reason were readable
by whoever created the huddl, whatever their role in the group today. A
person who was made a member again, or removed from the group, kept that
view of every huddl they had created, including each date of a series they
started.

Reading them now depends on being the group's owner or one of its
organizers at the time of the read. An organizer who creates a huddl holds
one of those roles, and an owner who hands the group over stays an
organizer, so nobody organizing a group loses anything. People with RSVP
history keep the view of a cancelled huddl that RSVP history already gives.
@mwoods79
mwoods79 merged commit e7827d7 into main Nov 30, 2026
5 checks passed
@mwoods79
mwoods79 deleted the t3/restrict-creator-access branch November 30, 2026 04:27
mwoods79 added a commit that referenced this pull request Nov 30, 2026
…vocation

* origin/main:
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79 added a commit that referenced this pull request Nov 30, 2026
…-tokens

* origin/main:
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79 added a commit that referenced this pull request Nov 30, 2026
…arer-token

* origin/main:
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)

# Conflicts:
#	lib/huddlz_web/graphql_socket.ex
mwoods79 added a commit that referenced this pull request Nov 30, 2026
…n-escaping

* origin/main:
  fix(api): authenticate API, GraphQL and MCP from the bearer alone (#729)
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
mwoods79 added a commit that referenced this pull request Nov 30, 2026
…dl-links

* origin/main:
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79 added a commit that referenced this pull request Nov 30, 2026
…mutations

* origin/main:
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79 added a commit that referenced this pull request Nov 30, 2026
…ership

* origin/main:
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79 added a commit that referenced this pull request Nov 30, 2026
* origin/main:
  fix(auth): bind administrator viewing credentials to the browser session (#736)
  fix(api): authenticate API, GraphQL and MCP from the bearer alone (#729)
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
mwoods79 added a commit that referenced this pull request Nov 30, 2026
…r-leave

* origin/main:
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79 added a commit that referenced this pull request Dec 1, 2026
* origin/main:
  fix(auth): have open pages follow a change of access (#735)
  fix(groups): authorize membership changes against their roster (#739)
  fix(auth): bind administrator viewing credentials to the browser session (#736)
  fix(api): authenticate API, GraphQL and MCP from the bearer alone (#729)
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)
mwoods79 added a commit that referenced this pull request Dec 1, 2026
…d-sorts

* origin/main:
  fix(auth): have open pages follow a change of access (#735)
  fix(groups): authorize membership changes against their roster (#739)
  fix(auth): bind administrator viewing credentials to the browser session (#736)
  fix(api): authenticate API, GraphQL and MCP from the bearer alone (#729)
  fix(api): accept only sign-in tokens on the GraphQL socket (#730)
  fix(huddl): tie organizer-only huddl details to the current role (#726)
  fix(groups): keep a group's address book with its organizers (#725)
  fix(discover): noindex empty filtered public discovery responses (#734)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0