Geo: Make selective replication work right

Merged username-removed-283999 requested to merge 3131-make-selective-replication-work-right into master

What does this MR do?

Check if a secondary node with project restrictions can process hooks for specific projects ids.

Are there points in the code the reviewer needs to double check?

No.

Why was this MR needed?

Otherwise, we'll just end up pulling those repositories anyway.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #3131 (closed)

/cc @stanhu @brodock @to1ne

Edited by username-removed-283999