Changed Dept access check to use parms, changed id to dept