API: Add check to see if the user is authorised to run the api method
API: Add check to see if the user is authorised to run the api method

phil-davis/core,bluelml/core,lrytz/core,sharidas/core,xx621998xx/server,lrytz/core,Ardinis/server,xx621998xx/server,lrytz/core,Ardinis/server,pixelipo/server,endsguy/server,pollopolea/core,nextcloud/server,bluelml/core,michaelletzgus/nextcloud-server,nextcloud/server,owncloud/core,andreas-p/nextcloud-server,cernbox/core,owncloud/core,endsguy/server,jbicha/server,nextcloud/server,jbicha/server,Ardinis/server,andreas-p/nextcloud-server,jbicha/server,nextcloud/server,bluelml/core,sharidas/core,pollopolea/core,pmattern/server,Ardinis/server,jbicha/server,IljaN/core,bluelml/core,endsguy/server,xx621998xx/server,endsguy/server,cernbox/core,xx621998xx/server,lrytz/core,cernbox/core,endsguy/server,whitekiba/server,andreas-p/nextcloud-server,pollopolea/core,bluelml/core,michaelletzgus/nextcloud-server,IljaN/core,sharidas/core,Ardinis/server,xx621998xx/server,owncloud/core,IljaN/core,pixelipo/server,whitekiba/server,whitekiba/server,whitekiba/server,pmattern/server,pmattern/server,pixelipo/server,IljaN/core,michaelletzgus/nextcloud-server,pollopolea/core,andreas-p/nextcloud-server,pixelipo/server,andreas-p/nextcloud-server,sharidas/core,pixelipo/server,pmattern/server,lrytz/core,owncloud/core,whitekiba/server,pmattern/server,michaelletzgus/nextcloud-server,jbicha/server,pollopolea/core,cernbox/core,IljaN/core,cernbox/core,sharidas/core,owncloud/core