From 244c0fa72b021263e2fd49cfa098747bce0ee068 Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Sat, 24 Feb 2024 19:02:51 +0100 Subject: [PATCH] aanpassen create_admin --- backend/db/interface/AdminDAO.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/db/interface/AdminDAO.py b/backend/db/interface/AdminDAO.py index 37e16e94..465b7931 100644 --- a/backend/db/interface/AdminDAO.py +++ b/backend/db/interface/AdminDAO.py @@ -26,11 +26,11 @@ def get_all_admins(self) -> list[AdminDataclass]: raise NotImplementedError() @abstractmethod - def give_admin(self, user_id: int): + def create_admin(self, admin: AdminDataclass): """ - Geeft de gegeven user admin rechten. + Maakt een nieuwe admin aan. - :param user_id: De id van de user die admin moet worden. + :param admin: De AdminDataclass van de nieuwe admin. """ raise NotImplementedError()