Browse Source

관리자는 사문 편집 가능

2DU 8 years ago
parent
commit
09b29af476
1 changed files with 3 additions and 0 deletions
  1. 3 0
      func.py

+ 3 - 0
func.py

@@ -165,6 +165,9 @@ def acl_check(name):
     if(acl_c):
     if(acl_c):
         acl_n = acl_c.groups()
         acl_n = acl_c.groups()
 
 
+        if(admin_check(5, None) == 1):
+            return(0)
+
         curs.execute("select acl from data where title = ?", ['사용자:' + acl_n[0]])
         curs.execute("select acl from data where title = ?", ['사용자:' + acl_n[0]])
         acl_d = curs.fetchall()
         acl_d = curs.fetchall()
         if(acl_d):
         if(acl_d):