Revert "removed template committ"

This reverts commit 888d884d099db492b18c766ea11a40ffb062db9d.
Revert "Commented out the cancan authorize function."

This reverts commit 73b039dab70142ceb83958b79ceadd67e445c93c.