Пример #1
0
    def __before__(self):
        if not ensure_fb_session():
                redirect_to("/")

        user = Session.query(User).get(session['userid'])
        if not user.fbid in self.admin:
            redirect_to('/')
Пример #2
0
 def __before__(self):
     if not ensure_fb_session():
         redirect_to("/request/invitation")
Пример #3
0
 def __before__(self):
     ensure_fb_session()