Merge pull request #734 from sharelatex/sk-handle-403-linked-files

When refreshing or creating linked files, exempt from 403-error-catcher
This commit is contained in:
Hayden Faulds 2018-07-06 15:09:28 +01:00 committed by GitHub
commit 158cb58e29

View file

@ -386,6 +386,8 @@ define [
provider,
data,
_csrf: window.csrfToken
}, {
disableAutoLoginRedirect: true
}
refreshLinkedFile: (file) ->
@ -396,6 +398,8 @@ define [
return
return @ide.$http.post "/project/#{@ide.project_id}/linked_file/#{file.id}/refresh", {
_csrf: window.csrfToken
}, {
disableAutoLoginRedirect: true
}
renameEntity: (entity, name, callback = (error) ->) ->