the new function to check if a user is allowed to do code merge.