query userPermissionsQuery($projectPath: ID!, $iid: String!) {
  project(fullPath: $projectPath) {
    mergeRequest(iid: $iid) {
      userPermissions {
        canMerge
        pushToSourceBranch
      }
    }
  }
}
