diff --git a/chat/indico_chat/controllers/base.py b/chat/indico_chat/controllers/base.py index fa0c8be..1383fec 100644 --- a/chat/indico_chat/controllers/base.py +++ b/chat/indico_chat/controllers/base.py @@ -25,9 +25,9 @@ from indico_chat.util import is_chat_admin class RHChatManageEventBase(RHManageEventBase): - def _checkProtection(self): + def _check_access(self): if not is_chat_admin(session.user): - RHManageEventBase._checkProtection(self) + RHManageEventBase._check_access(self) class RHEventChatroomMixin: diff --git a/previewer_jupyter/indico_previewer_jupyter/controllers.py b/previewer_jupyter/indico_previewer_jupyter/controllers.py index a78c3e8..9cc1410 100644 --- a/previewer_jupyter/indico_previewer_jupyter/controllers.py +++ b/previewer_jupyter/indico_previewer_jupyter/controllers.py @@ -29,8 +29,8 @@ from indico_previewer_jupyter.cpp_highlighter import CppHighlighter class RHEventPreviewIPyNB(RH): - def _checkProtection(self): - RH._checkProtection(self) + def _check_access(self): + RH._check_access(self) if not self.attachment.can_access(session.user): raise Forbidden