[PR] Add back decorator `has_access` [airflow]

2023-10-05 Thread via GitHub
vincbeck opened a new pull request, #34786: URL: https://github.com/apache/airflow/pull/34786 See [comment thread](https://github.com/apache/airflow/pull/33213#discussion_r1343788762). `has_access` decorator seems to be used by many plugins. Hence, in order to avoid breaking them. Ad

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-08 Thread via GitHub
jens-scheffler-bosch commented on code in PR #34786: URL: https://github.com/apache/airflow/pull/34786#discussion_r1349770592 ## airflow/www/auth.py: ## @@ -44,6 +46,27 @@ def get_access_denied_message(): return conf.get("webserver", "access_denied_message") +def has_ac

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-08 Thread via GitHub
jens-scheffler-bosch commented on code in PR #34786: URL: https://github.com/apache/airflow/pull/34786#discussion_r1349771522 ## airflow/www/auth.py: ## @@ -44,6 +46,27 @@ def get_access_denied_message(): return conf.get("webserver", "access_denied_message") +def has_ac

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-10 Thread via GitHub
vincbeck commented on code in PR #34786: URL: https://github.com/apache/airflow/pull/34786#discussion_r1352934435 ## airflow/www/auth.py: ## @@ -44,6 +46,27 @@ def get_access_denied_message(): return conf.get("webserver", "access_denied_message") +def has_access(permiss

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-10 Thread via GitHub
vincbeck commented on code in PR #34786: URL: https://github.com/apache/airflow/pull/34786#discussion_r1352939249 ## airflow/www/auth.py: ## @@ -44,6 +46,27 @@ def get_access_denied_message(): return conf.get("webserver", "access_denied_message") +def has_access(permiss

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-10 Thread via GitHub
vincbeck commented on PR #34786: URL: https://github.com/apache/airflow/pull/34786#issuecomment-1755910306 > What I did not fully get with the new API methods are, these are specific to the UI areas. If I add a `MyPlugin` then I would need to add a `has_access_my_plugin()` decorator, the on

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-10 Thread via GitHub
jens-scheffler-bosch commented on PR #34786: URL: https://github.com/apache/airflow/pull/34786#issuecomment-1755949965 > > So besides public API would be good to add some hints into the plugin authoring docs - If you don't want to raise a PR I could if you help me in understanding. >

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-10 Thread via GitHub
vincbeck commented on PR #34786: URL: https://github.com/apache/airflow/pull/34786#issuecomment-1756037969 @utkarsharma2, @ashb, @hussein-awala Any comments? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL abo

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-10 Thread via GitHub
utkarsharma2 commented on PR #34786: URL: https://github.com/apache/airflow/pull/34786#issuecomment-1756075151 @vincbeck Thanks for adding it back :) changes look good to me. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub an

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-11 Thread via GitHub
potiuk merged PR #34786: URL: https://github.com/apache/airflow/pull/34786 -- 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. To unsubscribe, e-mail: commits-unsubscr...@airflow.a

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-05 Thread via GitHub
ashb commented on code in PR #34786: URL: https://github.com/apache/airflow/pull/34786#discussion_r1347908652 ## airflow/www/auth.py: ## @@ -44,6 +46,25 @@ def get_access_denied_message(): return conf.get("webserver", "access_denied_message") +def has_access(permissions

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-05 Thread via GitHub
utkarsharma2 commented on PR #34786: URL: https://github.com/apache/airflow/pull/34786#issuecomment-1749572624 @vincbeck @ashb Should we also update the [public interface document](https://airflow.apache.org/docs/apache-airflow/stable/public-airflow-interface.html)? Maybe as a separate PR?

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-05 Thread via GitHub
hussein-awala commented on code in PR #34786: URL: https://github.com/apache/airflow/pull/34786#discussion_r1347951190 ## airflow/auth/managers/fab/decorators/auth.py: ## @@ -0,0 +1,89 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor lic

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-05 Thread via GitHub
vincbeck commented on code in PR #34786: URL: https://github.com/apache/airflow/pull/34786#discussion_r1347954018 ## airflow/www/auth.py: ## @@ -44,6 +46,25 @@ def get_access_denied_message(): return conf.get("webserver", "access_denied_message") +def has_access(permiss

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-05 Thread via GitHub
vincbeck commented on code in PR #34786: URL: https://github.com/apache/airflow/pull/34786#discussion_r1347955338 ## airflow/auth/managers/fab/decorators/auth.py: ## @@ -0,0 +1,89 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-05 Thread via GitHub
vincbeck commented on PR #34786: URL: https://github.com/apache/airflow/pull/34786#issuecomment-1749629977 > @vincbeck @ashb Should we also update the [public interface document](https://airflow.apache.org/docs/apache-airflow/stable/public-airflow-interface.html) to include `has_access`? Ma

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-05 Thread via GitHub
hussein-awala commented on PR #34786: URL: https://github.com/apache/airflow/pull/34786#issuecomment-1749636013 > > @vincbeck @ashb Should we also update the [public interface document](https://airflow.apache.org/docs/apache-airflow/stable/public-airflow-interface.html) to include `has_acce

Re: [PR] Add back decorator `has_access` [airflow]

2023-10-06 Thread via GitHub
vincbeck commented on PR #34786: URL: https://github.com/apache/airflow/pull/34786#issuecomment-1750735846 > > > @vincbeck @ashb Should we also update the [public interface document](https://airflow.apache.org/docs/apache-airflow/stable/public-airflow-interface.html) to include `has_access`