]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Added authorization + issues dashboard
[rails.git] / app / models / user.rb
index a550b9f05fd2a8ddd891b9dd134e58a04898d88a..4a36b3e61e5c2dbca369528bae2356f7dcc87f22 100644 (file)
@@ -26,6 +26,9 @@ class User < ActiveRecord::Base
 
   has_many :roles, :class_name => "UserRole"
 
+  has_many :issues
+  has_many :reports
+
   scope :visible, -> { where(:status => %w(pending active confirmed)) }
   scope :active, -> { where(:status => %w(active confirmed)) }
   scope :identifiable, -> { where(:data_public => true) }