jhtimmins commented on a change in pull request #11362:
URL: https://github.com/apache/airflow/pull/11362#discussion_r509604020
##########
File path: airflow/www/views.py
##########
@@ -394,8 +394,10 @@ def health(self):
return wwwutils.json_response(payload)
@expose('/home')
- @has_access
- def index(self): # pylint: disable=too-many-locals,too-many-statements
+ @auth.has_access([
+ (permissions.ACTION_CAN_READ, permissions.RESOURCE_WEBSITE),
+ ]) # pylint: disable=too-many-locals,too-many-statements
Review comment:
Nope. See the other comment. I'm not sure why’d , but it throws it at
this level for some reason. I presume it has to do with the reassigning the
view function data to the output of the wrapper function.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]