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