Skip to content

Commit

Permalink
Allow Edit bttn to be visible for SysAdmin user (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
leefaisonr authored Dec 13, 2024
1 parent c43e16b commit c162d8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/projects/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="details">
<h2>Project Description
<%# Per ticket #1114 only superusers have edit access %>
<% if @project_eligible_to_edit && current_user.superuser %>
<% if @project_eligible_to_edit && current_user.superuser || current_user.sysadmin %>
<%= link_to "Edit", edit_project_path(@project.id), id:"revisible-heading", class: "btn btn-primary btn-sm" %>
<% end %>
</h2>
Expand Down
2 changes: 1 addition & 1 deletion spec/system/project_show_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
expect(page).to have_content(project_not_in_mediaflux.title)
expect(page).to have_content(pending_text)
expect(page).to have_css ".pending"
expect(page).not_to have_link("Edit")
expect(page).to have_link("Edit")
expect(page).to have_selector(:link_or_button, "Approve Project")
end
end
Expand Down

0 comments on commit c162d8e

Please sign in to comment.