Project

General

Profile

The way to monitor User or Groups properties, existance changes

Added by Andrey Iskousnykh over 9 years ago

Is there any way to monitor changes like User or Group deletion, User deactivation and so on.

Found out that these methods are private

class User < Principal
...
  before_save   :generate_password_if_needed, :update_hashed_password
  before_destroy :remove_references_before_destroy

What for? Well, some plugin wants to be depended on internal accounts system. Ofcourse I can force checks for each query, but it's not the best way IMHO.

Any suggestions, advises?

PS: Currently using Redmine v2.4.3. I'm ruby noob.