Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

populate()- populating tables permission issue #248

Open
saravanannnallasamy opened this issue Jul 10, 2017 · 0 comments
Open

populate()- populating tables permission issue #248

saravanannnallasamy opened this issue Jul 10, 2017 · 0 comments

Comments

@saravanannnallasamy
Copy link

Review.find().populate('packages').exec(function(err,record){
	if (err) throw err;
	sails.log.debug('record data : ' +util.inspect(record, {showHidden: true,depth: null}));
	return res.ok(record);
});

For Review table i have read permission, but for package table [ populate('packages') ] I don't have read permission but I getting all datas.

[
  {
    "packages": {
      "year": 2017,
      "type": 2,
      "id": 1,
      "createdAt": "2017-07-10T07:12:05.000Z",
      "updatedAt": "2017-07-10T07:12:05.000Z",
      "createdBy": 4,
      "owner": 4
    },
    "createdBy": 4,
    "owner": 4,
    "title": "Suzuki Gixxer",
    "text": "manual transmission",
    "category": "bikes",
    "id": 3,
    "createdAt": "2017-07-10T07:12:05.000Z",
    "updatedAt": "2017-07-10T07:12:05.000Z"
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant