ActiveRecord::Base
Can see own drafts, can fill in requests
all of the above, plus see and edit all drafts
all of the above, plus voting
all of the above, including restricted drafts
Checks access to a given GLSA
# File app/models/user.rb, line 44 def can_access?(glsa) return false if access == 0 and not glsa.is_owner? self return false if access < 3 and glsa.restricted true end
Returns a certain category form the user’s preferences or an empty hash if that category does not exist
# File app/models/user.rb, line 57 def get_pref_category(category) return {} if self.preferences == nil or self.preferences[category] == nil self.preferences[category] end
Generated with the Darkfish Rdoc Generator 2.