Check for None perms
This commit is contained in:
parent
8707f9292f
commit
ec748af191
1 changed files with 2 additions and 2 deletions
|
@ -741,7 +741,7 @@ class Session():
|
|||
return True
|
||||
|
||||
def _cmd_post(self):
|
||||
if not self.perms & UserPermission.POST:
|
||||
if self.perms is None or not self.perms & UserPermission.POST:
|
||||
self.respond(ResponseCode.NNTP_POST_PROHIBITED)
|
||||
|
||||
self.respond(ResponseCode.NNTP_INQUIRY_ARTICLE)
|
||||
|
@ -768,7 +768,7 @@ class Session():
|
|||
return self.respond(ResponseCode.NNTP_POST_FAILED)
|
||||
|
||||
def _cmd_ihave(self, message_id):
|
||||
if not self.perms & UserPermission.POST:
|
||||
if self.perms is None or not self.perms & UserPermission.POST:
|
||||
self.respond(ResponseCode.NNTP_POST_PROHIBITED)
|
||||
|
||||
sql = """
|
||||
|
|
Loading…
Add table
Reference in a new issue