Update a user table field upon usergroup permissions update

XFA

Well-known member
Hi,

Upon save of the usergroup permissions, I am trying to update a field in the user sql table after the permission combination update. The corresponding permission is a custom permission in custom group/interface.

My goal is to clear a field for the users that belong to combinations (containing the updated usergroup) for which the resulting updated value for the combined permission would be "deny".

I have been playing around with the permissions model class but couldn't achieve it.
Thought playing with the rebuildPermissionCacheForUserGroup method would do and digged through other methods called in the updateGlobalPermissionsForUserCollection method called when updating usergroup permissions but got no luck achieving it...

Perhaps I am missing something... Anyone already did this or know where would be the best place to achieve what I am trying to do ?

Thanks in advance,
Clément
 
Last edited:
Damn, seems like I have been the only one struggling to do such thing :(
I'll try to continue searching.

Don't hesitate to give me your 2 cent in case ideas/info come to your mind.
 
Ok forget this question... I was playing badly with usergroup priorities hence why it didn't work...
 
Top Bottom