Skip to content

Commit 78cf056

Browse files
committed
rename
1 parent cdfc0cb commit 78cf056

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/postgres-database/src/simcore_postgres_database/utils_tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ async def has_access_rights(
239239
self,
240240
connection: AsyncConnection | None = None,
241241
*,
242-
caller_id: int,
242+
user_id: int,
243243
tag_id: int,
244244
read: bool = False,
245245
write: bool = False,
@@ -249,7 +249,7 @@ async def has_access_rights(
249249
group_id_or_none = await conn.scalar(
250250
has_access_rights_stmt(
251251
tag_id=tag_id,
252-
caller_user_id=caller_id,
252+
caller_user_id=user_id,
253253
read=read,
254254
write=write,
255255
delete=delete,

packages/postgres-database/tests/test_utils_tags.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ async def test_tags_repo_create(
653653

654654
# Checks defaults to full ownership
655655
assert await tags_repo.has_access_rights(
656-
caller_id=user.id,
656+
user_id=user.id,
657657
tag_id=tag_1["id"],
658658
read=True,
659659
write=True,
@@ -688,7 +688,7 @@ async def test_tags_repo_access_rights(
688688
}
689689

690690
assert await tags_repo.has_access_rights(
691-
caller_id=user.id,
691+
user_id=user.id,
692692
tag_id=tag["id"],
693693
read=True,
694694
write=True,
@@ -705,15 +705,15 @@ async def test_tags_repo_access_rights(
705705
)
706706

707707
assert not await tags_repo.has_access_rights(
708-
caller_id=other_user.id,
708+
user_id=other_user.id,
709709
tag_id=tag["id"],
710710
read=user_access["read"],
711711
write=user_access["write"],
712712
delete=user_access["delete"],
713713
)
714714

715715
assert await tags_repo.has_access_rights(
716-
caller_id=other_user.id,
716+
user_id=other_user.id,
717717
tag_id=tag["id"],
718718
read=other_user_access["read"],
719719
write=other_user_access["write"],
@@ -735,13 +735,13 @@ async def test_tags_repo_access_rights(
735735

736736
# checks partial
737737
assert await tags_repo.has_access_rights(
738-
caller_id=other_user.id,
738+
user_id=other_user.id,
739739
tag_id=tag["id"],
740740
read=False,
741741
)
742742

743743
assert not await tags_repo.has_access_rights(
744-
caller_id=other_user.id, tag_id=tag["id"], write=True
744+
user_id=other_user.id, tag_id=tag["id"], write=True
745745
)
746746

747747
# DELETE access to other-user

0 commit comments

Comments
 (0)