Beispiel #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('/')
Beispiel #2
0
 def __before__(self):
     if not ensure_fb_session():
         redirect_to("/request/invitation")
Beispiel #3
0
 def __before__(self):
     ensure_fb_session()