fix bug 1289589: Remove edit button from templates
fix bug 1289589: Remove edit button from templates

If the user doesn't have permission to edit templates, don't show the
edit button.

yfdyh000/kuma,Elchi3/kuma,jwhitlock/kuma,Elchi3/kuma,mozilla/kuma,jwhitlock/kuma,yfdyh000/kuma,ollie314/kuma,yfdyh000/kuma,jwhitlock/kuma,ollie314/kuma,a2sheppy/kuma,safwanrahman/kuma,yfdyh000/kuma,yfdyh000/kuma,mozilla/kuma,yfdyh000/kuma,safwanrahman/kuma,escattone/kuma,escattone/kuma,Elchi3/kuma,escattone/kuma,safwanrahman/kuma,ollie314/kuma,mozilla/kuma,Elchi3/kuma,a2sheppy/kuma,safwanrahman/kuma,SphinxKnight/kuma,ollie314/kuma,jwhitlock/kuma,SphinxKnight/kuma,a2sheppy/kuma,SphinxKnight/kuma,SphinxKnight/kuma,a2sheppy/kuma,safwanrahman/kuma,a2sheppy/kuma,jwhitlock/kuma,SphinxKnight/kuma,mozilla/kuma,SphinxKnight/kuma,ollie314/kuma,mozilla/kuma,safwanrahman/kuma,Elchi3/kuma,ollie314/kuma