BigW Consortium Gitlab

Get group members only if group not nil

parent 144212fb
......@@ -17,7 +17,10 @@ class Admin::ProjectsController < Admin::ApplicationController
end
def show
@group_members = @group.members.order("group_access DESC").page(params[:group_members_page]).per(30)
if @group
@group_members = @group.members.order("group_access DESC").page(params[:group_members_page]).per(30)
end
@project_members = @project.users_projects.page(params[:project_members_page]).per(30)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment