Per the 2nd Ed. PHB
Wizard Lock (2nd level spell)
(Alteration)
Range: Touch
Duration: Permanent
Area of Effect: 30 sq. ft./level
Components: V, S
Casting Time: 2
Saving Throw: None
A
wizard lock spell cast upon a door, chest, or portal magically locks it. The caster can freely pass his own lock without affecting it; otherwise, the wizard-locked door or object ca be opened only by breaking in, by a successful
dispel magic or
knock spell, or by a wizard four or more levels higher than the one casting the spell. Note that the last two methods do not remove the wizard lock; they only negate it for a brief duration - about one turn. Creatures from other planes cannot burst a wizard lock as they can a held portal (see the
hold portal spell).
In 3rd Edition the spell is called
arcane lock and its school changes to Abjuration and it gains the material component of 25 gp worth of gold dust.
The caster could freely pass through. Someone with the door bash skill could bash it (3E recommends a +10 to normal DC for bashing open locked doors) and it can be dispelled or knocked. Thieves, however, can't pick a wizard locked door. Oh well. Guess that means a wizard or big, burly fighter type is needed to get through

Helm keep thee.