From 67cb98088c2e2e768c37d30be372da9382d07bf2 Mon Sep 17 00:00:00 2001 From: guohongze Date: Thu, 18 Oct 2018 17:49:24 +0800 Subject: [PATCH] hotfix mfile permission --- mfile/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mfile/views.py b/mfile/views.py index 74fd8090..9df36242 100644 --- a/mfile/views.py +++ b/mfile/views.py @@ -1,9 +1,12 @@ from django.views.generic.base import View from django.shortcuts import render_to_response from django.contrib.auth.mixins import LoginRequiredMixin +from django.utils.decorators import method_decorator +from accounts.permission import permission_verify class finder(LoginRequiredMixin,View): + @method_decorator(permission_verify()) def get(self,request): temp_name = "mfile/mfile-header.html" return render_to_response('mfile/finder.html', locals()) \ No newline at end of file