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
Merge requests
!33
Master
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Master
master
into
production
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Tim Repke
requested to merge
master
into
production
2 years ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
aa3e0d67
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
aa3e0d67
change permissions
· aa3e0d67
Tim Repke
authored
2 years ago
server/api/routes/users.py
+
2
−
2
Options
@@ -11,14 +11,14 @@ from nacsos_data.db.crud.users import \
from
server.data
import
db_engine
from
server.api.errors
import
DataNotFoundWarning
,
UserNotFoundError
from
server.util.logging
import
get_logger
from
server.util.security
import
UserPermissionChecker
,
get_current_active_user
,
get_current_active_superuser
from
server.util.security
import
UserPermissionChecker
,
get_current_active_user
logger
=
get_logger
(
'
nacsos.api.route.admin.users
'
)
router
=
APIRouter
()
@router.get
(
'
/list/all
'
,
response_model
=
list
[
UserBaseModel
])
async
def
get_all_users
(
current_user
:
UserModel
=
Depends
(
get_current_active_
super
user
))
\
async
def
get_all_users
(
current_user
:
UserModel
=
Depends
(
get_current_active_user
))
\
->
list
[
UserInDBModel
]:
result
=
await
read_users
(
project_id
=
None
,
order_by_username
=
True
,
engine
=
db_engine
)
if
result
is
None
:
Loading