Fix crash when node has no allowed_methods property
This commit is contained in:
@@ -59,6 +59,9 @@ class Node(List, Find, Create, Post, Update, Delete, Replace, Patch):
|
||||
return self.success()
|
||||
|
||||
def has_method(self, method):
|
||||
if not self.allowed_methods:
|
||||
return False
|
||||
|
||||
if method in self.allowed_methods:
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user