[security] Major security fix: an existing resource could be overwritten by any user due to wrong permissions check.
[security] Major security fix: an existing resource could be overwritten by any user due to wrong permissions check.

svn path=/trunk/eXist/; revision=18302

windauer/exist,lcahlander/exist,jensopetersen/exist,kohsah/exist,wshager/exist,joewiz/exist,wshager/exist,eXist-db/exist,MjAbuz/exist,jensopetersen/exist,RemiKoutcherawy/exist,zwobit/exist,jessealama/exist,adamretter/exist,lcahlander/exist,wolfgangmm/exist,jensopetersen/exist,kohsah/exist,jessealama/exist,dizzzz/exist,wshager/exist,adamretter/exist,RemiKoutcherawy/exist,jessealama/exist,MjAbuz/exist,dizzzz/exist,ljo/exist,opax/exist,MjAbuz/exist,jensopetersen/exist,shabanovd/exist,shabanovd/exist,lcahlander/exist,ambs/exist,wshager/exist,dizzzz/exist,joewiz/exist,hungerburg/exist,zwobit/exist,ljo/exist,eXist-db/exist,olvidalo/exist,RemiKoutcherawy/exist,adamretter/exist,MjAbuz/exist,joewiz/exist,wolfgangmm/exist,patczar/exist,joewiz/exist,zwobit/exist,ljo/exist,wolfgangmm/exist,adamretter/exist,shabanovd/exist,eXist-db/exist,patczar/exist,windauer/exist,adamretter/exist,ambs/exist,lcahlander/exist,jensopetersen/exist,ambs/exist,windauer/exist,wshager/exist,windauer/exist,shabanovd/exist,opax/exist,ljo/exist,dizzzz/exist,jessealama/exist,dizzzz/exist,wshager/exist,olvidalo/exist,shabanovd/exist,patczar/exist,wolfgangmm/exist,olvidalo/exist,hungerburg/exist,ambs/exist,zwobit/exist,MjAbuz/exist,lcahlander/exist,jessealama/exist,ljo/exist,jensopetersen/exist,opax/exist,opax/exist,jessealama/exist,RemiKoutcherawy/exist,zwobit/exist,eXist-db/exist,hungerburg/exist,ambs/exist,wolfgangmm/exist,ambs/exist,lcahlander/exist,windauer/exist,patczar/exist,kohsah/exist,RemiKoutcherawy/exist,kohsah/exist,olvidalo/exist,kohsah/exist,patczar/exist,dizzzz/exist,eXist-db/exist,adamretter/exist,joewiz/exist,hungerburg/exist,windauer/exist,opax/exist,zwobit/exist,ljo/exist,eXist-db/exist,shabanovd/exist,MjAbuz/exist,olvidalo/exist,kohsah/exist,joewiz/exist,wolfgangmm/exist,hungerburg/exist,patczar/exist,RemiKoutcherawy/exist