RPC function vs RoleAuthority check?

Is it possible to see a little more of the code?

Can we also get more of an understanding of the context?