Fixed issue #9032: Permissions not enforced on template editor