Skip to content

Commit

Permalink
Changed to role="client" for packages/download
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminastrand committed Jan 24, 2025
1 parent f23cdcf commit bfaebe0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fedn/network/api/v1/package_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

from fedn.common.config import FEDN_COMPUTE_PACKAGE_DIR
from fedn.network.api.auth import jwt_auth_required
from fedn.network.api.shared import control
from fedn.network.api.shared import control, package_store, repository
from fedn.network.api.shared import get_checksum as _get_checksum
from fedn.network.api.shared import package_store, repository
from fedn.network.api.v1.shared import api_version, get_post_data_to_kwargs, get_typed_list_headers
from fedn.network.storage.statestore.stores.shared import EntityNotFound

Expand Down Expand Up @@ -573,7 +572,7 @@ def upload_package():


@bp.route("/download", methods=["GET"])
@jwt_auth_required(role="admin")
@jwt_auth_required(role="client")
def download_package():
"""Download package
Downloads a package based on the provided id.
Expand Down

0 comments on commit bfaebe0

Please sign in to comment.