Fix crash when node has no allowed_methods property

This commit is contained in:
2016-10-27 09:29:34 +02:00
parent d5d99ec355
commit d2a24d4593

View File

@@ -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