Skip to content

Commit 1a34132

Browse files
authored
Add __permissions__ attr to the handlers wrapped by the permissions decorator (#389)
So that, on import, we can easily figure out what permissions an endpoint might need
1 parent 183539b commit 1a34132

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/access.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def wrapper(self, *args, **kwargs):
7575
raise tornado.web.HTTPError(401)
7676
return method(self, *args, **kwargs)
7777

78+
wrapper.__permissions__ = acl_list
7879
return wrapper
7980

8081
return check_acls

0 commit comments

Comments
 (0)