For a widget? No. The only way to "restrict" the user from seeing a specific category is to configure the permissions to view the images from that category in the first place.
I don't think what you want can be done; I do think it's a good idea though.
The question(s) in this support topic have been answered and the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic.