ashb commented on a change in pull request #15574:
URL: https://github.com/apache/airflow/pull/15574#discussion_r649088108
##########
File path: airflow/www/views.py
##########
@@ -3113,6 +3116,55 @@ def action_muldelete(self, items):
self.update_redirect()
return redirect(self.get_redirect())
+ @action(
+ 'mulduplicate',
+ 'Duplicate',
+ 'Are you sure you want to duplicate the selected connections?',
+ single=False,
+ )
+ @provide_session
+ @auth.has_access(
+ [
+ (permissions.ACTION_CAN_CREATE, permissions.RESOURCE_CONNECTION),
Review comment:
```suggestion
(permissions.ACTION_CAN_CREATE, permissions.RESOURCE_CONNECTION),
(permissions.ACTION_CAN_READ, permissions.RESOURCE_CONNECTION),
```
Although it's unlikely you'd have create and not read, this should also have
read permissions.
--
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]