mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 01:41:39 +00:00
Removed org
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from django.utils.decorators import method_decorator
|
||||
from auth.decorators import login_required
|
||||
|
||||
from base.decorators import ctx_switch_required
|
||||
# from base.decorators import ctx_switch_required
|
||||
|
||||
class LoginRequiredMixin(object):
|
||||
"""
|
||||
@@ -15,8 +15,8 @@ class LoginRequiredMixin(object):
|
||||
def dispatch(self, *args, **kwargs):
|
||||
return super(LoginRequiredMixin, self).dispatch(*args, **kwargs)
|
||||
|
||||
class CtxSwitchRequiredMixin(object):
|
||||
@method_decorator(ctx_switch_required)
|
||||
def dispatch(self, *args, **kwargs):
|
||||
return super(CtxSwitchRequiredMixin, self).dispatch(*args, **kwargs)
|
||||
# class CtxSwitchRequiredMixin(object):
|
||||
# @method_decorator(ctx_switch_required)
|
||||
# def dispatch(self, *args, **kwargs):
|
||||
# return super(CtxSwitchRequiredMixin, self).dispatch(*args, **kwargs)
|
||||
|
||||
|
Reference in New Issue
Block a user