I've used similar latches, there's supposed to be a second bar with a hole in it that the L shaped bar will rotate and flip over, and when you place a lock in the holes the lock will keep the L shaped bar from rotating outward.
No second bracket is visible, so it's either a smaller one hidden from view by the lock or nobody installed it, thus making this lock as simple as "move the latch, the lock will barely be an inconvenience once you wiggle it slightly out of the way"