screwdriver-api 8.0.59 → 8.0.61

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": "8.0.59",
3
+ "version": "8.0.61",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,7 +48,7 @@ module.exports = () => ({
48
48
  const scmUri = await getScmUri({ pipeline, pipelineFactory });
49
49
 
50
50
  // Check the user's permission
51
- await getUserPermissions({ user, scmUri });
51
+ await getUserPermissions({ user, scmUri, level: 'push' });
52
52
 
53
53
  const res = await api.invoke(request);
54
54
  const statusCode = res.statusCode === 200 ? 204 : res.statusCode;