コード例 #1
0
ファイル: __init__.py プロジェクト: irek-zaripov/indico
def _add_action_menu(event, **kwargs):
    return render_template(
        "events/management/action_menu.html",
        event=event,
        can_lock=can_lock(event, session.user),
        can_manage=event.as_event.can_manage(session.user),
    )
コード例 #2
0
ファイル: __init__.py プロジェクト: jacquesd/indico
def _add_action_menu(event, **kwargs):
    return render_template('events/management/action_menu.html', event=event, can_lock=can_lock(event, session.user))
コード例 #3
0
def _add_action_menu(event, **kwargs):
    return render_template('events/management/action_menu.html',
                           event=event,
                           can_lock=can_lock(event, session.user),
                           can_manage=event.can_manage(session.user))
コード例 #4
0
ファイル: controllers.py プロジェクト: MichelCordeiro/indico
 def _checkProtection(self):
     self._allowClosed = can_lock(self._conf, session.user)
     RHConferenceModifBase._checkProtection(self)
コード例 #5
0
ファイル: controllers.py プロジェクト: MichelCordeiro/indico
 def _checkProtection(self):
     RHConferenceModifBase._checkProtection(self)
     if not can_lock(self._conf, session.user):
         raise Forbidden
コード例 #6
0
ファイル: controllers.py プロジェクト: nyimbi/indico
 def _checkProtection(self):
     self._allowClosed = can_lock(self.event_new, session.user)
     RHConferenceModifBase._checkProtection(self)
コード例 #7
0
ファイル: controllers.py プロジェクト: nyimbi/indico
 def _checkProtection(self):
     RHConferenceModifBase._checkProtection(self)
     if not can_lock(self.event_new, session.user):
         raise Forbidden