Log version from when upgrading
Fix restriction caching for UI
Enforce permissions in privacy service