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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)