Allow a page to be edited by a specific custom role

I fixed it already.

I used the ACF User role selector to select roles per page.
Then i made a checker for every page that matches the current logged in role with the role selected on the page.