mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-23 13:46:45 +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
|
let userPermissionQuery = this.db
|
||||||
.select(
|
.select(
|
||||||
'project',
|
'project',
|
||||||
'permission',
|
'p.permission',
|
||||||
'environment',
|
'environment',
|
||||||
'type',
|
'type',
|
||||||
'ur.role_id',
|
'ur.role_id',
|
||||||
@ -217,7 +217,7 @@ export class AccessStore implements IAccessStore {
|
|||||||
userPermissionQuery = userPermissionQuery.union((db) => {
|
userPermissionQuery = userPermissionQuery.union((db) => {
|
||||||
db.select(
|
db.select(
|
||||||
'project',
|
'project',
|
||||||
'permission',
|
'p.permission',
|
||||||
'environment',
|
'environment',
|
||||||
'p.type',
|
'p.type',
|
||||||
'gr.role_id',
|
'gr.role_id',
|
||||||
@ -233,7 +233,7 @@ export class AccessStore implements IAccessStore {
|
|||||||
userPermissionQuery = userPermissionQuery.union((db) => {
|
userPermissionQuery = userPermissionQuery.union((db) => {
|
||||||
db.select(
|
db.select(
|
||||||
this.db.raw("'default' as project"),
|
this.db.raw("'default' as project"),
|
||||||
'permission',
|
'p.permission',
|
||||||
'environment',
|
'environment',
|
||||||
'p.type',
|
'p.type',
|
||||||
'g.root_role_id as role_id',
|
'g.root_role_id as role_id',
|
||||||
|
Loading…
Reference in New Issue
Block a user