Skip to content
Snippets Groups Projects
Commit b1e85746 authored by Alfred Ashur Oshana's avatar Alfred Ashur Oshana
Browse files

fix: pi instead of cube id

parent b4c0ff7c
No related branches found
No related tags found
No related merge requests found
...@@ -55,10 +55,10 @@ async def verify_user(cube_id: int, x_forwarded_preferred_username: Optional[str ...@@ -55,10 +55,10 @@ async def verify_user(cube_id: int, x_forwarded_preferred_username: Optional[str
raise HTTPException(status_code=401, detail="Unauthorized") raise HTTPException(status_code=401, detail="Unauthorized")
def verify_user_pi(cube_id: int, username: str, admin: bool): def verify_user_pi(pi_id: int, username: str, admin: bool):
if admin: if admin:
return True return True
if username is not None and username in reservation.get_active_users(cube_id): if username is not None and username in reservation.get_active_users(pi_id):
return True return True
return False return False
...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages ...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name='pilab', name='pilab',
version='4.2.0', version='4.2.1',
description='Shared-Libs for the pi-lab microservices', description='Shared-Libs for the pi-lab microservices',
url='https://code.fbi.h-da.de/api/v4/projects/27896/packages/pypi/pilab', url='https://code.fbi.h-da.de/api/v4/projects/27896/packages/pypi/pilab',
author='Max Reinheimer', author='Max Reinheimer',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment