diff --git a/airflow/www/security.py b/airflow/www/security.py index b2d12f7daa277..43485e0917803 100644 --- a/airflow/www/security.py +++ b/airflow/www/security.py @@ -267,9 +267,9 @@ def has_access(self, permission, view_name, user=None): :param permission: permission on dag_id(e.g can_read, can_edit). :type permission: str :param view_name: name of view-menu(e.g dag id is a view-menu as well). - :type permission: str + :type view_name: str :param user: user name - :type permission: str + :type user: str :return: a bool whether user could perform certain permission on the dag_id. :rtype bool """