Closed marmat1 closed 5 months ago
I would like to remove users from their groups when they are locked.
I have tried with an user after saving observable object workflow:
if (self.locked?) self.groups.remove end
Is there any method in user or group classes to get it?
Many thanks.
if locked? groups.delete_all end
Perfect! It works!
if self.locked? self.groups.delete_all end
I would like to remove users from their groups when they are locked.
I have tried with an user after saving observable object workflow:
Is there any method in user or group classes to get it?
Many thanks.