gate-sso / gate

Gate is MFA Enabled SSO Platform that supports SAML, OAuth, Linux shell login and CAS
https://gate-sso.github.io
MIT License
203 stars 53 forks source link

Fix paper trail when user removed from group #178

Closed walbertus closed 4 years ago

walbertus commented 4 years ago

When a user is removed from the group using method delete_all, it will skip the callback method (https://guides.rubyonrails.org/active_record_callbacks.html#skipping-callbacks). Paper trail only created when the callback is called, this is why the delete_all method will not create a paper trail record.