Move role related views to FAB Auth manager:

- List roles
- Edit role
- Create role
- View role
#
#
#
from __future__ import annotations
from flask_appbuilder.security.views import (
    PermissionModelView,
    PermissionViewModelView,
    RoleModelView,
    ViewMenuModelView,
)
from flask_babel import lazy_gettext
from airflow.security import permissions
class ActionModelView(PermissionModelView):
    """Customize permission names for FAB's builtin PermissionModelView."""
    class_permission_name = permissions.RESOURCE_ACTION
    route_base = "/actions"
    method_permission_name = {
        "list": "read",
    }
    base_permissions = [
        permissions.ACTION_CAN_READ,
    ]
    list_title = lazy_gettext("List Actions")
    show_title = lazy_gettext("Show Action")
    add_title = lazy_gettext("Add Action")
    edit_title = lazy_gettext("Edit Action")
    label_columns = {"name": lazy_gettext("Name")}
class PermissionPairModelView(PermissionViewModelView):