Skip to content

Feature/publish events simple#181

Open
demogorgonzola wants to merge 4 commits intomasterfrom
feature/publish-events-simple
Open

Feature/publish events simple#181
demogorgonzola wants to merge 4 commits intomasterfrom
feature/publish-events-simple

Conversation

@demogorgonzola
Copy link
Contributor

Fixes #103

This is a much simpler solution compared to #172.
It takes the "CheckedPublished" middleware and if any route concerns itself with viewing anything associated with an unpublished event, a 401 is sent to the user.

An additional "Publish" and "Unpublish" button have been added to the lead and admin event view.

+ tests for the child of event to event method
+ migration for 'published_at' column on events
+ tests for authorization of published/unpublished events
Copy link
Contributor

@Meleeman01 Meleeman01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works great, but i'm thinking the published unpublished logic should be in the controller

Copy link
Contributor

@Meleeman01 Meleeman01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything works as intended, and i understand the design decisions for this PR

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.

Add option to publish events

2 participants