I am creating a gallery application, and I want the ability to have public and private galleries. I have the public galleries set up pretty well, I think, but I’m having some trouble conceptualizing the private galleries. I’m considering the possibility of having a Private namespace with galleries and images, then assigning a user as the owner of a specific gallery so that they are the only ones who can access the gallery.
If I were to do something like that, would I be able to create a new private gallery from within the Admin Namespace?
Instead of having separate namespaces, how about using something like CanCan (https://github.com/ryanb/cancan) for authorization?
You could have a boolean field of
privatedo something like:So that a user can only view a private Gallery if he owns it.