emory-libraries/dlp-lux

View on GitHub

Showing 22 of 22 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def download_groups(id)
doc = permissions_doc(id)
return [] if doc.nil?
dg = Array(doc[self.class.download_group_field])
Rails.logger.debug("[CANCAN] download_groups: #{dg.inspect}")
Severity: Minor
Found in lib/blacklight/access_controls/ability.rb and 1 other location - About 15 mins to fix
lib/blacklight/access_controls/ability.rb on lines 174..179

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def download_users(id)
doc = permissions_doc(id)
return [] if doc.nil?
dp = Array(doc[self.class.download_user_field])
Rails.logger.debug("[CANCAN] download_users: #{dp.inspect}")
Severity: Minor
Found in lib/blacklight/access_controls/ability.rb and 1 other location - About 15 mins to fix
lib/blacklight/access_controls/ability.rb on lines 166..171
Severity
Category
Status
Source
Language