<s> from nap import auth <EOL> class LoginRequiredMixin ( object ) : <EOL> @ auth . permit_logged_in <EOL> def dispatch ( self , * args , ** kwargs ) : <EOL> return super ( LoginRequiredMixin , self ) . dispatch ( * args , ** kwargs ) <EOL> class StaffRequiredMixin ( object ) : <EOL> @ auth . permit_staff <EOL> def dispatch ( self , * args , ** kwargs ) : <EOL> return super ( LoginRequiredMixin , self ) . dispatch ( * args , ** kwargs ) </s>
