Skip to content

Commit

Permalink
Merge pull request #2621 from data-for-change/2586-remove_old_roles_f…
Browse files Browse the repository at this point in the history
…rom_qualification_endpoint

replacing non existing roles with admin as required roles for locatio…
  • Loading branch information
tkalir authored Apr 20, 2024
2 parents b6603f9 + abd7e97 commit 51bffa6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions anyway/views/news_flash/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,7 @@ def extracted_location_and_qualification(news_flash_obj: NewsFlash):


@roles_accepted(
BE_CONST.Roles2Names.Authenticated.value,
BE_CONST.Roles2Names.Location_verification.value,
need_all_permission=True,
BE_CONST.Roles2Names.Admins.value
)
def update_news_flash_qualifying(id):
current_user = get_current_user()
Expand Down

0 comments on commit 51bffa6

Please sign in to comment.