do not introspect the value of accessRestriction

if there are no users or groups, it simply means nobody can access it.
(maybe the admin is doing something on the cloudron and does not want
anyone to access it).
This commit is contained in:
Girish Ramakrishnan
2016-09-06 13:09:11 -07:00
parent aa3501c780
commit ac5cef3c2f
3 changed files with 2 additions and 9 deletions

View File

@@ -225,7 +225,7 @@ describe('Apps', function () {
expect(apps._validateAccessRestriction({ users: {} })).to.be.an(Error);
});
it('does not allow no user input', function () {
it('allows no user input', function () {
expect(apps._validateAccessRestriction({ users: [] })).to.be.an(Error);
});