Fix bug where flickr button is shown for users without permission

Change-Id: Ice032fcb16bbf278a9419c6bf39bbb8833e51fdc
Merge "Fix bug where flickr button is shown for users without permission"