Hi Vladimir,
I tested some more with other user role, but as soon as post edit access is enabled for some posts / categories in combination with the filter in the function.php and there is also an filter for other user role in the function.php then the post edit access restriction is not working. You get to see all the posts instead of the posts / categories which are put in the post edit access window.
I hope you can fix this because I have a few roles with need to have access to some posts and full access to another plugin. Thanks.