Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NACSOS Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MCC APSIS
NACSOS
NACSOS Core
Commits
0a7c177b
Commit
0a7c177b
authored
2 years ago
by
Tim Repke
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'production'
fix user permission endpoint See merge request
!31
parents
a26245fd
f8958b23
No related branches found
Branches containing commit
No related tags found
1 merge request
!31
fix user permission endpoint
Pipeline
#1194
passed
2 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/api/routes/project/permissions.py
+1
-4
1 addition, 4 deletions
server/api/routes/project/permissions.py
with
1 addition
and
4 deletions
server/api/routes/project/permissions.py
+
1
−
4
View file @
0a7c177b
...
@@ -45,10 +45,7 @@ async def get_all_user_permissions(permission=Depends(UserPermissionChecker('own
...
@@ -45,10 +45,7 @@ async def get_all_user_permissions(permission=Depends(UserPermissionChecker('own
.
options
(
selectinload
(
ProjectPermissions
.
user
)))
.
options
(
selectinload
(
ProjectPermissions
.
user
)))
result
=
(
await
session
.
execute
(
stmt
)).
scalars
().
all
()
result
=
(
await
session
.
execute
(
stmt
)).
scalars
().
all
()
return
[
UserPermission
.
parse_obj
({
return
[
UserPermission
(
**
{
**
row
.
__dict__
,
'
user
'
:
row
.
user
.
__dict__
})
for
row
in
result
]
# type: ignore
'
user
'
:
row
.
user
.
__dict__
,
**
row
.
__dict__
})
for
row
in
result
]
@router.put
(
'
/permission
'
,
response_model
=
str
)
@router.put
(
'
/permission
'
,
response_model
=
str
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment