[lib/native] lift legacyUpdateRolesAndPermissions into lib
Summary:
Move diff.
I am going to be updating D12061 so that it lives in lib. To do this, I need to lift legacyUpdateRolesAndPermissions also into lib
Test Plan: flow
Reviewers: tomek, kamil
Reviewed By: tomek
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D12390