Skip to content

Commit

Permalink
Change MANIFEST.in
Browse files Browse the repository at this point in the history
Allow neuro cognates tool only for administrator
  • Loading branch information
vmonakhov committed Feb 18, 2025
1 parent aa66310 commit ff0726a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include *.txt *.md *.ini *.cfg *.rst
include *.txt *.md *.ini *.cfg *.rst lingvodoc/utils/neuro_cognates/*.json lingvodoc/utils/neuro_cognates/*.keras
recursive-include lingvodoc *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.svg *.eot *.ttf *.woff *woff2
4 changes: 4 additions & 0 deletions lingvodoc/schema/gql_cognate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5761,6 +5761,10 @@ def mutate(

user = Client.get_user_by_client_id(client_id)

# For now only administrator can use neuro cognates tool
if user.id != 1:
return ResponseError(error_str)

author_client_id_set = (

set(
Expand Down
2 changes: 1 addition & 1 deletion server-requirements-1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Jinja2==2.10.3
joblib==0.14.1
kombu==3.0.37
Logbook==1.1.0
lxml==4.4.1
lxml==4.5.2 #4.4.1
Mako==1.0.4
MarkupSafe==2.1.1
minio==6.0.0
Expand Down

0 comments on commit ff0726a

Please sign in to comment.