I followed codes sample here with security trim to get a list of sub site titles that user have access.
Access denied. You do not have permission to perform or access this resource.
Is there a solution for this? The users have read-only at the root site and contribute at subside.
Below is the codes: