Permalink
Browse files

修复普通用户能添加授权bug (#324)

* 修复sudo别名取消后不回收bug

* 修复普通用户能添加授权bug
1 parent a864c38 commit 9f3c83b0526949aee8432ede2960e77667c83c02 @yumaojun03 yumaojun03 committed with ibuler Nov 17, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 jperm/views.py
View
@@ -81,6 +81,7 @@ def perm_rule_detail(request):
return my_render('jperm/perm_rule_detail.html', locals(), request)
+@require_role('admin')
def perm_rule_add(request):
"""
add rule page

0 comments on commit 9f3c83b

Please sign in to comment.