Rename _checkProtection to _check_access

This commit is contained in:
Adrian Moennich 2017-09-20 15:08:15 +02:00
parent 4d76f2fd5e
commit 3d7a583c5e
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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