This phrasing needs to die.
Not allowed is something your parents imposed on you when you were a child.
You’re not allowed to have an ice cream, or you’re not allowed to hang out with that boy.
Laws don’t not allow anything, they only sometimes impose penalties if you’re caught breaking them.