Thread:Project:Support desk/Help with code in Extension to only allow editing of Subpages/reply (2)

The code is from the Whitelist Regex Extension, and he has a bit of documentation there at the bottom of the page. He uses the Usercan hook, which has some documentation of the parameters like $result here. If I set the return to true in the inner if, then it allows editing of all pages.

Thanks!