Overriding SecurityTeams Logic

Hi everyone.

I want to override the securityteams access logic (upgrade safe, if it’s possible) but I can’t find where to do it.

I will add a field on securyteams called “child of/parent” that will indicate who is father group of that one (basically I want to do like a hierarchical tree of groups and manage the access to records at my way).

Any clue?

Thank you in advance,
Spock B)

Check which file you need to modify then override using the custom directory?