Skip to content

Commit 57382e2

Browse files
author
KirillMysnik
committed
Fixed #189
1 parent 71ae493 commit 57382e2

File tree

1 file changed

+5
-1
lines changed
  • addons/source-python/packages/source-python/auth

1 file changed

+5
-1
lines changed

addons/source-python/packages/source-python/auth/manager.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,11 @@ def is_player_authorized(self, index, permission):
360360
361361
:rtype: bool
362362
"""
363-
return permission in self.get_player_permissions(index)
363+
permissions = self.get_player_permissions(index)
364+
if permissions is None:
365+
return False
366+
367+
return permission in permissions
364368

365369
def get_parent_permissions(self, parent_name):
366370
"""Return the parent permissions.

0 commit comments

Comments
 (0)