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

Can you provide a bit of documentation for the code you wrote?


 * You are obvisouly using a hook to execute the extension; which one?
 * What are the 4 parameters of your function?
 * Especially: What is "$result"?

Without knowing the above, I think that inside the inner if clause, returning FALSE is wrong. If I know correctly, you should always return TRUE, except an error happened (and that does not seem to be the case at that place in the code).