Remove duplicate isAuthorized function in Comments controller