Project: made has_method() safe for when allowed_methods doesn't exist.
This commit is contained in:
@@ -74,9 +74,9 @@ class Project(List, Find, Create, Post, Update, Delete, Replace):
|
||||
return self.success()
|
||||
|
||||
def has_method(self, method):
|
||||
if method in self.allowed_methods:
|
||||
return True
|
||||
return False
|
||||
if self.allowed_methods is None:
|
||||
return False
|
||||
return method in self.allowed_methods
|
||||
|
||||
def children(self, api=None):
|
||||
api = api or self.api
|
||||
|
||||
Reference in New Issue
Block a user