Commit 1c0d419c014d983466706abfb1790f8ba4dd75de
1 parent
cb989cc7
Exists in
master
and in
29 other branches
ActionItem501: reviewing access control declarations
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2189 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
app/models/environment.rb
@@ -65,7 +65,8 @@ class Environment < ActiveRecord::Base | @@ -65,7 +65,8 @@ class Environment < ActiveRecord::Base | ||
65 | 65 | ||
66 | has_many :regions | 66 | has_many :regions |
67 | 67 | ||
68 | - has_many :role_assignments, :as => 'resource' | 68 | + acts_as_accessible |
69 | + | ||
69 | def superior_intances | 70 | def superior_intances |
70 | [self, nil] | 71 | [self, nil] |
71 | end | 72 | end |
app/models/profile.rb
@@ -88,8 +88,6 @@ class Profile < ActiveRecord::Base | @@ -88,8 +88,6 @@ class Profile < ActiveRecord::Base | ||
88 | has_many :domains, :as => :owner | 88 | has_many :domains, :as => :owner |
89 | belongs_to :environment | 89 | belongs_to :environment |
90 | 90 | ||
91 | - has_many :role_assignments, :as => :resource | ||
92 | - | ||
93 | has_many :articles, :dependent => :destroy | 91 | has_many :articles, :dependent => :destroy |
94 | belongs_to :home_page, :class_name => Article.name, :foreign_key => 'home_page_id' | 92 | belongs_to :home_page, :class_name => Article.name, :foreign_key => 'home_page_id' |
95 | 93 |