I have some react user privilege state data I need to manage. I would like the ability to change the object privileges based on their property through a dynamic function. I\