diff --git a/pillarsdk/projects.py b/pillarsdk/projects.py index 4dfd1d1..6863dfd 100644 --- a/pillarsdk/projects.py +++ b/pillarsdk/projects.py @@ -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