When i set a new restricted role for a certain user and view their dashboard I can’t open one of the pages under pages section. I get this error message:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /var/sites/m/sitename.com/public_html/wp-includes/wp-db.php on line 2352
I can open the page as administrator even when they cant.
When I set the user back to administrator and check again I can open the page and error message gone.
It seems I should optimize some SQL queries. How much pages (approximately) do you have at this site?
Edit restrictions are not applied to the users with ‘administrator’ role. So that query was not executed.