Fix API build error based on new DB schema, now only
RoleBasedEntityAccessChecker needs to be fixed.