massmessage: Fix authorization check in template