Skip to content

Commit

Permalink
[api] Catch another mass assignment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Mar 13, 2012
1 parent 2660e4c commit 7ab1733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/lib/active_rbac_mixins/user_mixins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def self.included(base)
#attr_protected :roles, :groups, :created_at, :updated_at, :last_logged_in_at, :login_failure_count, :password_hash_type
# NOTE: Can't mix attr_protected and attr_accessible, but we set the latter to nil by default since
# git commit 107d7a612. Thus we have to explicitly list the allowed attributes:
attr_accessible :login, :email, :realname, :password, :password_confirmation
attr_accessible :login, :email, :realname, :password, :password_confirmation, :state

# This method returns a hash with the the available user states.
# By default it returns the private class constant DEFAULT_STATES.
Expand Down

0 comments on commit 7ab1733

Please sign in to comment.