Skip to content

Commit

Permalink
be able to configure __allow_access__ with service function by using (#…
Browse files Browse the repository at this point in the history
…48)

the `allow_access` configuration option
  • Loading branch information
vangheem committed Apr 10, 2017
1 parent 405615d commit b96c7ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
1.0.0a7 (unreleased)
--------------------

- be able to configure __allow_access__ with service function by using
the `allow_access` configuration option
[vangheem]

- rename modified to modification_date and created to creation_date
[vangheem]

Expand Down
2 changes: 2 additions & 0 deletions guillotina/configure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ def __call__(self, func):
from guillotina.api.service import Service

class _View(self.config.get('base', Service)):
__allow_access__ = self.config.get('allow_access', False)

async def __call__(self):
return await func(self.context, self.request)

Expand Down

0 comments on commit b96c7ff

Please sign in to comment.