Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
d60f1a56
Unverified
Commit
d60f1a56
authored
Jan 25, 2024
by
IAMZn
Committed by
GitHub
Jan 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:determine multiple result exceptions caused by admin (#2211)
Co-authored-by:
chenxin
<
chenxin@limayao.com
>
parent
da83f840
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wraps.py
api/controllers/service_api/wraps.py
+1
-1
No files found.
api/controllers/service_api/wraps.py
View file @
d60f1a56
...
@@ -75,7 +75,7 @@ def validate_dataset_token(view=None):
...
@@ -75,7 +75,7 @@ def validate_dataset_token(view=None):
tenant_account_join
=
db
.
session
.
query
(
Tenant
,
TenantAccountJoin
)
\
tenant_account_join
=
db
.
session
.
query
(
Tenant
,
TenantAccountJoin
)
\
.
filter
(
Tenant
.
id
==
api_token
.
tenant_id
)
\
.
filter
(
Tenant
.
id
==
api_token
.
tenant_id
)
\
.
filter
(
TenantAccountJoin
.
tenant_id
==
Tenant
.
id
)
\
.
filter
(
TenantAccountJoin
.
tenant_id
==
Tenant
.
id
)
\
.
filter
(
TenantAccountJoin
.
role
.
in_
([
'owner'
,
'admin'
]))
\
.
filter
(
TenantAccountJoin
.
role
.
in_
([
'owner'
]))
\
.
one_or_none
()
.
one_or_none
()
if
tenant_account_join
:
if
tenant_account_join
:
tenant
,
ta
=
tenant_account_join
tenant
,
ta
=
tenant_account_join
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment