@tiledesk/tiledesk-server 2.7.24 → 2.7.26

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
+ # 2.7.26
9
+ - Updated tybot-connector to 0.2.72
10
+
11
+ # 2.7.25
12
+ - Updated tybot-connector to 0.2.70
13
+ - Changed auth role strategy in groups route and project_user endpoint
14
+
8
15
  # 2.7.24
9
16
  - Updated whatsapp-jobworker to 0.0.8
10
17
  - Updated knowledge base route
package/app.js CHANGED
@@ -546,7 +546,7 @@ app.use('/:projectid/departments', department);
546
546
 
547
547
  channelManager.useUnderProjects(app);
548
548
 
549
- app.use('/:projectid/groups', [passport.authenticate(['basic', 'jwt'], { session: false }), validtoken, roleChecker.hasRole('agent')], group);
549
+ app.use('/:projectid/groups', [passport.authenticate(['basic', 'jwt'], { session: false }), validtoken, roleChecker.hasRoleOrTypes('agent', ['bot','subscription'])], group);
550
550
  app.use('/:projectid/tags', [passport.authenticate(['basic', 'jwt'], { session: false }), validtoken, roleChecker.hasRole('agent')], tag);
551
551
  app.use('/:projectid/subscriptions', [passport.authenticate(['basic', 'jwt'], { session: false }), validtoken, roleChecker.hasRole('admin')], resthook);
552
552
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.7.24",
4
+ "version": "2.7.26",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -48,7 +48,7 @@
48
48
  "@tiledesk/tiledesk-rasa-connector": "^1.0.10",
49
49
  "@tiledesk/tiledesk-train-jobworker": "^0.0.11",
50
50
  "@tiledesk/tiledesk-telegram-connector": "^0.1.14",
51
- "@tiledesk/tiledesk-tybot-connector": "^0.2.69",
51
+ "@tiledesk/tiledesk-tybot-connector": "^0.2.72",
52
52
  "@tiledesk/tiledesk-whatsapp-connector": "^0.1.72",
53
53
  "@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.8",
54
54
  "amqplib": "^0.5.5",
@@ -489,7 +489,7 @@ router.get('/users/:user_id', [passport.authenticate(['basic', 'jwt'], { session
489
489
  * WF: 1. GET PROJECT-USER by the passed project ID
490
490
  * 2. POPULATE THE user_id OF THE PROJECT-USER object WITH THE USER OBJECT
491
491
  */
492
- router.get('/', [passport.authenticate(['basic', 'jwt'], { session: false }), validtoken, roleChecker.hasRoleOrTypes('agent', ['subscription'])], function (req, res) {
492
+ router.get('/', [passport.authenticate(['basic', 'jwt'], { session: false }), validtoken, roleChecker.hasRoleOrTypes('agent', ['bot', 'subscription'])], function (req, res) {
493
493
 
494
494
  var role = [RoleConstants.OWNER, RoleConstants.ADMIN, RoleConstants.SUPERVISOR, RoleConstants.AGENT];
495
495