Revert "move permission tag at top of application tag."

This reverts commit b43c1bb069ec0dcc94463413fe94e009719ebec3.