potiuk commented on code in PR #33213:
URL: https://github.com/apache/airflow/pull/33213#discussion_r1304876653


##########
airflow/auth/managers/base_auth_manager.py:
##########
@@ -63,6 +68,69 @@ def get_user_id(self) -> str:
     def is_logged_in(self) -> bool:
         """Return whether the user is logged in."""
 
+    @abstractmethod
+    def is_authorized(
+        self,
+        action: ResourceAction,
+        resource_type: str,

Review Comment:
   Should we make it enum rather that str ? That seems like a closed list of 
resource types we can have permissions for?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to