send accessRestriction as null
This commit is contained in:
parent
05c522ea9b
commit
4d94a95565
@ -161,12 +161,10 @@ Cloudron.prototype.setCredentials = function (password, accessToken) {
|
||||
};
|
||||
};
|
||||
|
||||
Cloudron.prototype.installApp = function (location, manifest, cloudronVersion) {
|
||||
cloudronVersion = cloudronVersion || '0.0.74';
|
||||
|
||||
Cloudron.prototype.installApp = function (location, manifest) {
|
||||
var res = request.post(this._origin + '/api/v1/apps/install')
|
||||
.query({ access_token: this._credentials.accessToken })
|
||||
.send({ manifest: manifest, appStoreId: '', location: location, accessRestriction: semver.lte(cloudronVersion, '0.0.73') ? '' : null, oauthProxy: false })
|
||||
.send({ manifest: manifest, appStoreId: '', location: location, accessRestriction: null, oauthProxy: false })
|
||||
.end();
|
||||
common.verifyResponse2xx(res, 'Cannot install app');
|
||||
debug('App installed at %s'.green, location);
|
||||
|
@ -73,7 +73,7 @@ describe('Cloudron update testing', function () {
|
||||
var location = 'test' + (Math.random() * 10000).toFixed();
|
||||
it('can install app', function () {
|
||||
var manifest = appStore.getManifest(common.TESTAPP_ID, common.PREV_TESTAPP_VERSION);
|
||||
appId = cloudron.installApp(location, manifest, fromVersion);
|
||||
appId = cloudron.installApp(location, manifest);
|
||||
});
|
||||
|
||||
it('can populate the addons', function () {
|
||||
|
@ -73,7 +73,7 @@ describe('Cloudron update testing', function () {
|
||||
var location = 'test' + (Math.random() * 10000).toFixed();
|
||||
it('can install app', function () {
|
||||
var manifest = appStore.getManifest(common.TESTAPP_ID, common.PREV_TESTAPP_VERSION);
|
||||
appId = cloudron.installApp(location, manifest, fromVersion);
|
||||
appId = cloudron.installApp(location, manifest);
|
||||
});
|
||||
|
||||
it('can populate the addons', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user