Skip to content

Commit

Permalink
hotfix mfile permission
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Oct 18, 2018
1 parent 6582c1f commit 67cb980
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mfile/views.py
Original file line number Diff line number Diff line change
@@ -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())

0 comments on commit 67cb980

Please sign in to comment.