Only allowing users to edit certain files but files are not in a clean
hierarchy. Problem is that users can see and start editing files that they do
not have rights to. After spending a lot of time editing, the rights are only
enforced when it comes time to save the changes -frustrating the users for
wasting their time...

Any way to disallow the "edit this page" button if the user does not have
"write/edit" rights to that webpage? Thanks in advance.