A German court has ruled that up to 50 demonstrators can stage a protest within sight and earshot of the Group of Seven summit venue in the Bavarian Alps.

The news agency dpa reported that the Munich administrative court on Friday rejected most of a complaint by critics of the G-7 against restrictions imposed on their planned protest Sunday.

However, it said that given the high value of freedom of assembly, a small group could protest near the secluded Schloss Elmau hotel where German Chancellor Angela Merkel will host President Barack Obama and the leaders of Britain, Canada, France, Italy and Japan.

They still won't be allowed inside the security cordon immediately around the venue.

Thousands of police officers are being deployed in the region. The two-day summit starts Sunday.