concord-consortium/lara

View on GitHub

Showing 881 of 881 total issues

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

def setup_abilities
if params[:action] == "edit"
@is_project_admin = current_user.project_admin_of?(@sequence.project) || (@sequence.user_id == current_user.id && current_user.is_project_admin?)
else
@is_project_admin = current_user.is_project_admin?
Severity: Minor
Found in app/controllers/sequences_controller.rb and 1 other location - About 15 mins to fix
app/controllers/lightweight_activities_controller.rb on lines 331..335
Severity
Category
Status
Source
Language