screwdriver-api 7.0.162 → 7.0.163
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 +1 -1
- package/plugins/events/create.js +2 -1
package/package.json
CHANGED
package/plugins/events/create.js
CHANGED
|
@@ -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
|
|