Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make private albums possible #52

Merged
merged 11 commits into from
Jan 14, 2022
Merged

Make private albums possible #52

merged 11 commits into from
Jan 14, 2022

Conversation

bbucsy
Copy link
Member

@bbucsy bbucsy commented Jan 10, 2022

I found a way to make albums private by injecting an authorization action in the controllers.
This is done with heavy use of 🧙‍♂️ Ruby magic 🧞, but to make it a bit civilized i created a folder app/extensions to segregate this type of code from the rest of the application.

Also in the case an update brokes something you can disable the extensions by setting the OMIT_EXTENSIONS env variable.

closes #54

@bbucsy bbucsy marked this pull request as ready for review January 11, 2022 17:19
Copy link
Member

@triszt4n triszt4n left a comment

Choose a reason for hiding this comment

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

Works fine and easy 👨‍🍳 Also, committed some design extra: adding a badge that shows if the album is public

@bbucsy
Copy link
Member Author

bbucsy commented Jan 14, 2022

Also @SepsiLaszlo gave me an idea, where we could authorize image resources and shorten the url at the smae time. When the közösségi-pontozás is over, I will look into that. But because its an extension and not a modifications we could use this for the time being.

Copy link
Contributor

@SepsiLaszlo SepsiLaszlo left a comment

Choose a reason for hiding this comment

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

Great work, well done! 🚀

@bbucsy bbucsy merged commit b563e27 into master Jan 14, 2022
@bbucsy bbucsy deleted the feat/private-albums branch January 14, 2022 22:41
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.

Make album images private by default
4 participants