Skip to content

Commit

Permalink
Merge pull request #1053 from sparc-request/wth-document-overlord-access
Browse files Browse the repository at this point in the history
wth - (SPARCDashboard) Allow Overlord Users Access to Documents on Al…
  • Loading branch information
Stuart-Johnson committed Aug 10, 2017
2 parents 8d6ec9e + f34ad94 commit 3659933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/dashboard/documents/index.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
json.(@documents) do |doc|
has_access_to_doc = @permission_to_edit || (@admin_orgs & doc.all_organizations).any?
has_access_to_doc = @user.catalog_overlord || @permission_to_edit || (@admin_orgs & doc.all_organizations).any?

json.id doc.id
json.type doc.display_document_type
json.title dashboard_display_document_title(doc, has_access_to_doc)
json.uploaded format_date(doc.created_at)
json.edit dashboard_document_edit_button(doc, has_access_to_doc)
json.delete dashboard_document_delete_button(doc, has_access_to_doc)
end
end

0 comments on commit 3659933

Please sign in to comment.