get some "permission" piece of code from MenuEditor