mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Rename _checkProtection to _check_access
This commit is contained in:
parent
4d76f2fd5e
commit
3d7a583c5e
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user