Make gallery pages sensitive to sign-in

Make gallery pages sensitive to sign-in