enspiral/loomio — pull request #35 by jonlemmon (2012-03-28 02:24:56+00:00)
Title: Feature / Groups can be visible to everyone

I've added a feature to groups so that they can be viewable to non-members.

I ended up adding a fair amount of permissions logic to the motions controller. I couldn't figure out how to handle the permissions elegantly with cancan, so I just used several different before_filter's. It's probably too verbose at the moment, but it's quite clear so I don't think we're losing much. That said, if anyone has ideas on how to refactor the permissions code (and perhaps implement with cancan), I'm all ears.