adds admin access to /sheet/archive endpoint by sheet_id

This commit is contained in:
msramalho
2026-03-02 16:05:26 +00:00
parent 184d285d0e
commit ab579c5063
4 changed files with 146 additions and 28 deletions

View File

@@ -370,6 +370,10 @@ def create_sheet(
return db_sheet
def get_sheet_by_id(db: Session, sheet_id: str) -> models.Sheet:
return db.query(models.Sheet).filter(models.Sheet.id == sheet_id).first()
def get_user_sheet(db: Session, email: str, sheet_id: str) -> models.Sheet:
return (
db.query(models.Sheet)