Revision 09ce1364
Added by Amos Benari almost 12 years ago
- ID 09ce13649ce41444f392dde148d29eb3437be3c2
app/models/user.rb | ||
---|---|---|
class User < ActiveRecord::Base
|
||
include Authorization
|
||
include Foreman::ThreadSession::UserModel
|
||
audited :except => [:password, :password_hash, :password_salt, :password_confirmation]
|
||
audited :except => [:last_login_on, :password, :password_hash, :password_salt, :password_confirmation]
|
||
|
||
attr_protected :password_hash, :password_salt, :admin
|
||
attr_accessor :password, :password_confirmation, :editing_self
|
Also available in: Unified diff
audit as twitter and versions for template.
This also closes #1377 as it offer versions and diff view of the tempates.
it is not ideal, but it should handle the most common case for now,
where we should open other feature requests to support all of the ideas in #1377