Commit 9f3c83b0 authored by 紫川秀's avatar 紫川秀 Committed by 老广

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

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

* 修复普通用户能添加授权bug
parent a864c382
...@@ -81,6 +81,7 @@ def perm_rule_detail(request): ...@@ -81,6 +81,7 @@ def perm_rule_detail(request):
return my_render('jperm/perm_rule_detail.html', locals(), request) return my_render('jperm/perm_rule_detail.html', locals(), request)
@require_role('admin')
def perm_rule_add(request): def perm_rule_add(request):
""" """
add rule page add rule page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment