Skip to content

Commit

Permalink
IMC resources r
Browse files Browse the repository at this point in the history
  • Loading branch information
kriscfoster committed Aug 11, 2017
1 parent abafd55 commit 646ad9f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions db/model/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function profile(seq, dataTypes) {
},
eventAccess: {
type: dataTypes.ENUM('r', 'rw'),
defaultValue: 'rw',
defaultValue: 'r',
},
isDeleted: {
type: dataTypes.BIGINT,
Expand All @@ -65,7 +65,7 @@ module.exports = function profile(seq, dataTypes) {
},
roomTypeAccess: {
type: dataTypes.ENUM('r', 'rw'),
defaultValue: 'rw',
defaultValue: 'r',
},
sampleAccess: {
type: dataTypes.ENUM('r', 'rw'),
Expand Down
4 changes: 2 additions & 2 deletions migrations/20170811092638-ootb_refocus_profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ module.exports = {
*/
return qi.sequelize.transaction(() =>
qi.sequelize.query('UPDATE "Profiles" SET "aspectAccess" = \'rw\'' +
', "botAccess" = \'rw\', "eventAccess" = \'rw\'' +
', "botAccess" = \'rw\', "eventAccess" = \'r\'' +
', "lensAccess" = \'rw\', "perspectiveAccess" = \'rw\'' +
', "roomTypeAccess" = \'rw\', "sampleAccess" = \'rw\'' +
', "roomTypeAccess" = \'r\', "sampleAccess" = \'rw\'' +
', "subjectAccess" = \'rw\', "userAccess" = \'rw\'' +
' WHERE "name"=\'RefocusUser\';'
)
Expand Down
4 changes: 2 additions & 2 deletions tests/api/v1/profiles/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ describe(`api: GET ${path}`, () => {
expect(res.body).to.have.property('name', pname);
expect(res.body).to.have.property('aspectAccess', 'rw');
expect(res.body).to.have.property('botAccess', 'rw');
expect(res.body).to.have.property('eventAccess', 'rw');
expect(res.body).to.have.property('eventAccess', 'r');
expect(res.body).to.have.property('lensAccess', 'rw');
expect(res.body).to.have.property('perspectiveAccess', 'rw');
expect(res.body).to.have.property('profileAccess', 'r');
expect(res.body).to.have.property('roomAccess', 'rw');
expect(res.body).to.have.property('roomTypeAccess', 'rw');
expect(res.body).to.have.property('roomTypeAccess', 'r');
expect(res.body).to.have.property('sampleAccess', 'rw');
expect(res.body).to.have.property('subjectAccess', 'rw');
expect(res.body).to.have.property('userAccess', 'rw');
Expand Down
4 changes: 2 additions & 2 deletions tests/db/model/profile/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ describe('db: Profile: create', () => {
expect(o).to.have.property('name').to.equal(pname);
expect(o).to.have.property('aspectAccess').to.equal('rw');
expect(o).to.have.property('botAccess').to.equal('rw');
expect(o).to.have.property('eventAccess').to.equal('rw');
expect(o).to.have.property('eventAccess').to.equal('r');
expect(o).to.have.property('lensAccess').to.equal('rw');
expect(o).to.have.property('perspectiveAccess').to.equal('rw');
expect(o).to.have.property('profileAccess').to.equal('r');
expect(o).to.have.property('roomAccess').to.equal('rw');
expect(o).to.have.property('roomTypeAccess').to.equal('rw');
expect(o).to.have.property('roomTypeAccess').to.equal('r');
expect(o).to.have.property('sampleAccess').to.equal('rw');
expect(o).to.have.property('subjectAccess').to.equal('rw');
expect(o).to.have.property('userAccess').to.equal('rw');
Expand Down

0 comments on commit 646ad9f

Please sign in to comment.