Daniel Iwan
Posts: 0
Joined: Tue Feb 04, 2014 10:21 pm

You don't have permission to access system collections DBSQ254

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

You don't have permission to access system collections DBSQ254

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...

Daniel Iwan
Posts: 0
Joined: Tue Feb 04, 2014 10:21 pm

You don't have permission to access system collections DBSQ254

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

Daniel

Return to “Issues”