Commit 1c0d419c014d983466706abfb1790f8ba4dd75de

Authored by AntonioTerceiro
1 parent cb989cc7

ActionItem501: reviewing access control declarations

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2189 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/models/environment.rb
... ... @@ -65,7 +65,8 @@ class Environment < ActiveRecord::Base
65 65  
66 66 has_many :regions
67 67  
68   - has_many :role_assignments, :as => 'resource'
  68 + acts_as_accessible
  69 +
69 70 def superior_intances
70 71 [self, nil]
71 72 end
... ...
app/models/profile.rb
... ... @@ -88,8 +88,6 @@ class Profile < ActiveRecord::Base
88 88 has_many :domains, :as => :owner
89 89 belongs_to :environment
90 90  
91   - has_many :role_assignments, :as => :resource
92   -
93 91 has_many :articles, :dependent => :destroy
94 92 belongs_to :home_page, :class_name => Article.name, :foreign_key => 'home_page_id'
95 93  
... ...