mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-18 13:48:58 +02:00
fix: specify permission table (#5448)
https://linear.app/unleash/issue/2-1672/hotfix-specify-table-in-permission-column-queries This specifies the table that we are querying the `permission` column from, hopefully preventing ambiguity issues. You can find the relevant changes here: [#5409](https://github.com/Unleash/unleash/pull/5409/files#diff-5cb4eca71e6a03ec3d123986d657368a3386f80e986dfef2e3feb0abb0673d87)
This commit is contained in:
parent
7273e4931e
commit
b3ad6e7622
@ -204,7 +204,7 @@ export class AccessStore implements IAccessStore {
|
||||
let userPermissionQuery = this.db
|
||||
.select(
|
||||
'project',
|
||||
'permission',
|
||||
'p.permission',
|
||||
'environment',
|
||||
'type',
|
||||
'ur.role_id',
|
||||
@ -217,7 +217,7 @@ export class AccessStore implements IAccessStore {
|
||||
userPermissionQuery = userPermissionQuery.union((db) => {
|
||||
db.select(
|
||||
'project',
|
||||
'permission',
|
||||
'p.permission',
|
||||
'environment',
|
||||
'p.type',
|
||||
'gr.role_id',
|
||||
@ -233,7 +233,7 @@ export class AccessStore implements IAccessStore {
|
||||
userPermissionQuery = userPermissionQuery.union((db) => {
|
||||
db.select(
|
||||
this.db.raw("'default' as project"),
|
||||
'permission',
|
||||
'p.permission',
|
||||
'environment',
|
||||
'p.type',
|
||||
'g.root_role_id as role_id',
|
||||
|
Loading…
Reference in New Issue
Block a user