repair global permissions (templates require discussion)