Fixed bug in loading roles.
This commit is contained in:
parent
2926cc6309
commit
97c49a718e
|
@ -90,6 +90,7 @@ class Role < ActiveRecord::Base
|
|||
end
|
||||
a.rights = []
|
||||
a.attributes = fields
|
||||
Permission.delete_all
|
||||
rights.each do |con, acts|
|
||||
acts.each do |act|
|
||||
unless r = Right.where(:controller => con, :action => act)
|
||||
|
|
Loading…
Reference in New Issue