sumba 2.34.1 → 2.34.3

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.
@@ -379,8 +379,6 @@ async function hook () {
379
379
  level: 10,
380
380
  name: 'waibuMpa:preParsing',
381
381
  handler: async function (req, reply) {
382
- await this.checkTheme(req, reply)
383
- await this.checkIconset(req, reply)
384
382
  const secure = await this.checkUser(req, reply, 'waibuMpa')
385
383
  if (!secure) return
386
384
  await this.checkTeam(req, reply)
@@ -424,6 +422,8 @@ async function hook () {
424
422
  const { getHostname } = this.app.waibu
425
423
  req.site = await this.getSite(getHostname(req))
426
424
  await this.checkRoute(req)
425
+ await this.checkTheme(req, reply) // TODO: only check if webApp support it
426
+ await this.checkIconset(req, reply) // TODO: s.a.
427
427
  }
428
428
  }, {
429
429
  name: 'waibu:beforeStart',
package/index.js CHANGED
@@ -395,7 +395,7 @@ async function factory (pkgName) {
395
395
  }
396
396
  const redir = routePath(this.config.redirect.signin, { query, params })
397
397
  req.session.ref = req.url
398
- throw this.error('_redirect', { redirect: redir })
398
+ throw this.error('_redirect', { path: redir })
399
399
  }
400
400
 
401
401
  verifyApiKey = async (req, reply, source, payload) => {
@@ -728,7 +728,7 @@ async function factory (pkgName) {
728
728
  if (req.routeOptions.config.xSite && req.user.isXSiteAdmin) return
729
729
 
730
730
  const teamIds = req.user.teams.map(item => item.id + '')
731
- if (req.user.teams.map(item => item.alias).length === 0) throw this.error('accessDenied', { statusCode: 403 })
731
+ // if (req.user.teams.map(item => item.alias).length === 0) throw this.error('accessDenied', { statusCode: 403 })
732
732
 
733
733
  const paths = this.pathsToCheck(req)
734
734
  const results = (await this.getSecureGuards()).filter(item => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.34.1",
3
+ "version": "2.34.3",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-06-20
4
+
5
+ - [2.34.3] Bug fix in ```checkTeam()```
6
+ - [2.34.3] Bug fix in ```hook.js```
7
+
3
8
  ## 2026-06-19
4
9
 
5
10
  - [2.33.5] Bug fix in ```team-user.json```
@@ -7,6 +12,7 @@
7
12
  - [2.34.0] Add route checking to ```waibu:preParsing``` hook
8
13
  - [2.34.1] Bug fix in ```pathsToCheck()```
9
14
  - [2.34.1] Bug fix in ```hook.js```
15
+ - [2.34.2] Bug fix in ```verifySession()```
10
16
 
11
17
  ## 2026-06-18
12
18