This commit is contained in:
2025-05-09 01:33:59 +02:00
parent 3c0fea6812
commit 02a0253c1d
21 changed files with 148 additions and 74 deletions
+9
View File
@@ -39,6 +39,15 @@ class UserService(BaseService):
model = await self.get(username=username, deleted_at=None)
return model
def get_admin_uids(self):
return self.mapper.get_admin_uids()
async def get_template_path(self, user_uid):
path = pathlib.Path(f"./drive/{user_uid}/snek/templates")
if not path.exists():
return None
return path
async def get_home_folder(self, user_uid):
folder = pathlib.Path(f"./drive/{user_uid}")
if not folder.exists():