Эх сурвалжийг харах

Signed-off-by: zry <admin@z-touhou.org>

zry 8 жил өмнө
parent
commit
4ea9c6d0fa

+ 1 - 0
templates/home/post.bk.list.html

@@ -34,6 +34,7 @@
 		</a>
 	</div>
 </div>
+<br />
 {{FilterHTML|safe}}
 <div>{% include "common/paginator.html" %}</div>
 <br />

+ 1 - 1
views/posts.py

@@ -183,7 +183,7 @@ def PostPreview(request,ID):
 		"ctlist":BlogCategoty.objects.all(),
 		}
 		return render_to_response('home/post.err.html',kwvars,RequestContext(request))
-	if not PermCheck('pichublog','Admin'):
+	if not PermCheck(request.auth,'pichublog','Admin'):
 		if not thisuser == bpo.author:
 			kwvars = {
 			"request":request,