You can invoke the power down menu from anywhere in iOS, whether you’re on the Lock screen or actively using your device. If for any reason you ever wanted to limit this function so you couldn’t access it from the Lock screen, then today is your lucky day.
A new free jailbreak tweak called NoLSPowerDown by iOS developer NoisyFlake prevents your power down slider from being accessed unless your device is unlocked.