-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
62b1d5a
to
8863104
Compare
adb5a9c
to
be24991
Compare
69303cf
to
99330f2
Compare
There was a problem hiding this 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
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. |
There was a problem hiding this 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! 🚀
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