|
@@ -250,11 +250,15 @@ def method_update():
|
|
|
|
|
|
# Checks if the user has the permissions to use the requested method
|
|
|
def auth(user_id, method, kind):
|
|
|
- with open(DIR + "/auth/" + kind + "/" + method) as f:
|
|
|
- for line in f:
|
|
|
- if int(line) == user_id:
|
|
|
- return
|
|
|
- raise AuthError()
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+# with open(DIR + "/auth/" + kind + "/" + method) as f:
|
|
|
+# for line in f:
|
|
|
+# if int(line) == user_id:
|
|
|
+# return
|
|
|
+# raise AuthError()
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|