Skip to content

Commit

Permalink
Changes token action name for WebDAV digest
Browse files Browse the repository at this point in the history
The partial views/hooks/redmine_dmsf/_view_my_account.html.erb uses a
finder method where the action name still uses kebab case but since
migration 20240829093801_rename_dmsf_digest_token.rb it is required to
use snake case.

That is, dmsf-webdav-digest needs to be renamed to dmsf_webdav_digest
to find the token of the current user.
  • Loading branch information
liaham committed Sep 28, 2024
1 parent 4a72aaa commit 7a61872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/hooks/redmine_dmsf/_view_my_account.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<% if Setting.plugin_redmine_dmsf['dmsf_webdav_authentication'] == 'Digest' %>
<p>
<label for='webdav_digest_reset'><%= l(:label_dmsf_webdav_digest) %></label>
<% token = Token.find_by(user_id: @user.id, action: 'dmsf-webdav-digest') %>
<% token = Token.find_by(user_id: @user.id, action: 'dmsf_webdav_digest') %>
<% if token %>
<%= l(:label_dmsf_webdav_digest_created_on, distance_of_time_in_words(Time.now, token.created_on)) %>
<% else %>
Expand Down

0 comments on commit 7a61872

Please sign in to comment.