changed checkPermissions in the JobRecord