From abd7e9785a8b62cdc6d903e065c1064d47a8616c Mon Sep 17 00:00:00 2001 From: tkalir Date: Sat, 20 Apr 2024 18:56:40 +0300 Subject: [PATCH] replacing non existing roles with admin as required roles for location qualification endpoint --- anyway/views/news_flash/api.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/anyway/views/news_flash/api.py b/anyway/views/news_flash/api.py index 987fc5e2..d69a7008 100644 --- a/anyway/views/news_flash/api.py +++ b/anyway/views/news_flash/api.py @@ -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()