modify authorization middleware for support filtering in RBAC in whale

modify authorization middleware for support filtering in RBAC in whale