Skip to content

Commit a8221f8

Browse files
committed
@GitHK review: doc
1 parent 7108003 commit a8221f8

File tree

1 file changed

+0
-6
lines changed
  • packages/postgres-database/src/simcore_postgres_database

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,6 @@ async def create_or_update_access_rights(
286286
write: bool,
287287
delete: bool,
288288
) -> TagAccessRightsDict:
289-
# NOTE that there is no reference to the caller which implies
290-
# that we assume that the rigths to create or update these access_rights
291-
# have been checked (via has_access_rights) before calling this function
292289
async with transaction_context(self.engine, connection) as conn:
293290
result = await conn.execute(
294291
upsert_tags_access_rights_stmt(
@@ -317,9 +314,6 @@ async def delete_access_rights(
317314
tag_id: int,
318315
group_id: int,
319316
) -> bool:
320-
# NOTE that there is no reference to the caller which implies
321-
# that we assume that the rigths to delete these access_rights
322-
# have been checked (via has_access_rights) before calling this function
323317
async with transaction_context(self.engine, connection) as conn:
324318
deleted: bool = await conn.scalar(
325319
delete_tag_access_rights_stmt(tag_id=tag_id, group_id=group_id)

0 commit comments

Comments
 (0)