Skip to content

Commit

Permalink
remove extra doaj.session.currentUser
Browse files Browse the repository at this point in the history
  • Loading branch information
amdomanska committed Nov 19, 2024
1 parent 65beebf commit d67960d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion portality/static/js/doaj.fieldrender.edges.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $.extend(true, doaj, {
must: [
es.newTermFilter({
field: "index.flag_assignees.exact",
value: doaj.session.currentUser
value: doaj.session.currentUserId
})
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ <h2 class="label">Bulk edit records</h2>
articleEditUrl : "{{ url_for('admin.article_page', article_id='') }}",
journalEditUrl : "{{ url_for('admin.journal_page', journal_id='') }}",
searchPath : '/admin_query/journal,article/_search'
},
session : {
currentUser: "{{ current_user | tojson }}"
}
});
</script>
Expand Down
3 changes: 0 additions & 3 deletions portality/templates-v2/management/admin/applications.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ <h1 class="sr-only">Applications</h1>
journalsUrl : "{{ url_for('admin.index') }}",
readOnlyJournalUrl: "{{ url_for('admin.journal_readonly', journal_id="") }}",
searchPath : '/admin_query/suggestion/_search'
},
session : {
currentUser: "{{ current_user.id }}"
}
});
</script>
Expand Down
3 changes: 0 additions & 3 deletions portality/templates-v2/management/admin/journals_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ <h1 class="sr-only">Journals</h1>
journalEditUrl : "{{ url_for('admin.journal_page', journal_id='') }}",
applicationsUrl : "{{ url_for('admin.suggestions') }}",
searchPath : '/admin_query/journal/_search'
},
session : {
currentUser: "{{ current_user.id }}"
}
});
</script>
Expand Down

0 comments on commit d67960d

Please sign in to comment.