Skip to content

Commit

Permalink
Remove can_rename? method and alias it to can_save?
Browse files Browse the repository at this point in the history
  • Loading branch information
klaustopher committed May 23, 2024
1 parent 28d39f4 commit 92a8327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/projects/index_page_header_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def can_save?
end
end

def can_rename? = may_save_as? && query.persisted? && query.user == current_user && !query.changed?
alias can_rename? can_save?

def can_publish?
OpenProject::FeatureDecisions.project_list_sharing_active? &&
Expand Down

0 comments on commit 92a8327

Please sign in to comment.