Commit 828c7215 by Kálmán Viktor

firewall_gui: missing import json

parent c50fc3e0
...@@ -6,6 +6,8 @@ from django.contrib.auth.models import User ...@@ -6,6 +6,8 @@ from django.contrib.auth.models import User
from firewall.fw import * from firewall.fw import *
from firewall.models import * from firewall.models import *
import json
def req_staff(user): def req_staff(user):
''' decorator function for user permission checking ''' ''' decorator function for user permission checking '''
return user.is_staff return user.is_staff
......
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 sign in to comment