Page 1 of 1

You don't have permission to access system collections DBSQ254

Posted: Tue Feb 04, 2014 10:21 pm
by Daniel Iwan

I wrote a simple script that needs to read some info from Users collection.
I cannot find a way to got around that error.

My scripts simply tries to get info about an user

Code: Select all

     params.criteria = { 
       "_id": uid 
     } 

user = Collection.query(DB_id, collUsers, params, token);

when I'm using Server Code-Test option it always fails with that error. AT the moment there is no parameters to that script in Request, everything is hardcoded in server code.

Daniel


You don't have permission to access system collections DBSQ254

Posted: Tue Feb 04, 2014 10:55 pm
by Illya Stepanov

Hi Daniel -

You are retrieving precodeCollection./code/pre
should be precodeDatabaseUser./code/pre

Also you can find more information here:
:: http://docs.appery.io/documentation/b...


You don't have permission to access system collections DBSQ254

Posted: Wed Feb 05, 2014 1:16 am
by Daniel Iwan

Thanks a bunch that solved my problem!
Although error message was bit confusing.

Daniel