Guest User

Untitled

a guest
Jul 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. class Question
  2. def can?(person)
  3. (permissions.find(:all, :include => :role).map(&:role) & person.roles || person.is_community_administrator?) ? true: false
  4. end
Add Comment
Please, Sign In to add comment