Making sure that upload rights are enforced on lazy-loaded pages

Bug: 68414
Change-Id: I695ceaeeef0b766c1c68f8a90ede6396185ad0e3
(cherry picked from commit abb438bb2b62b6d52c68c15c3726604b0c6861d9)