Akshay Rajput 4 years ago
parent
commit
135a21a2a2
1 changed files with 10 additions and 9 deletions
  1. 10 9
      wbb/core/decorators/permissions.py

+ 10 - 9
wbb/core/decorators/permissions.py

@@ -67,15 +67,16 @@ def adminsOnly(permission):
             chatID = message.chat.id
             chatID = message.chat.id
             if not message.from_user:
             if not message.from_user:
                 # For anonymous admins
                 # For anonymous admins
-                if message.sender_chat:
-                    return await authorised(
-                        func,
-                        subFunc2,
-                        client,
-                        message,
-                        *args,
-                        **kwargs,
-                    )
+                #### It's a big security risk, Removing for a while
+                #if message.sender_chat:
+                #    return await authorised(
+                #        func,
+                #        subFunc2,
+                #        client,
+                #        message,
+                #        *args,
+                #        **kwargs,
+                #    )
                 return await unauthorised(message, permission, subFunc2)
                 return await unauthorised(message, permission, subFunc2)
             # For admins and sudo users
             # For admins and sudo users
             userID = message.from_user.id
             userID = message.from_user.id