screwdriver-api 7.0.162 → 7.0.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "7.0.162",
3
+ "version": "7.0.164",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -136,7 +136,7 @@ module.exports = () => ({
136
136
  let permissions;
137
137
 
138
138
  try {
139
- permissions = await user.getPermissions(scmUri);
139
+ permissions = await user.getPermissions(scmUri, pipeline.scmContext, pipeline.scmRepo);
140
140
  } catch (err) {
141
141
  if (err.statusCode === 403 && pipeline.scmRepo && pipeline.scmRepo.private) {
142
142
  throw boom.notFound();
@@ -155,6 +155,7 @@ module.exports = () => ({
155
155
  prNum,
156
156
  scmContext: pipeline.scmContext,
157
157
  scmUri: pipeline.scmUri,
158
+ scmRepo: pipeline.scmRepo,
158
159
  token
159
160
  };
160
161