Rights module using separate database

In my application, I have a separate database for each instance (let’s call it client portal) and that’s fine, and it’s exactly how I want it to be, but the rights tables I’d like to move to a central db instead of having to update each database each time i have to make a new set of roles/tasks, etc.

Has anyone done this or does anyone have an idea how I can do handle this?

Thanks in advance.

You should look a bit in the code of rights, there should be a function/property that return the database connection.

You should configure this property to be a database connection to the database of rights.

I cannot be more specific because I never used rights.