Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
User Authentication #26
Alright, so we've got funny stuff going on when one isn't an administrator. For now, I'll keep such issues in one thread (this one) as a dump of pending issues to address. (Committee Head role here).
Will update more once my ruby/rails situation is updated to 1.9.3-p194.
That means CanCan is doing its job. ;) Basically you've just got to modify this sucker: https://github.com/rit-sse/wtf/blob/master/app/models/ability.rb to say something like:
if user.admin? || user.committee_head? can :manage, :all else # ... end
We can fine-tune permissions later, but that should work for now. Made possible by changes to the User model: https://github.com/rit-sse/wtf/blob/master/app/models/user.rb