Commit 5a064b02 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Get group members only if group not nil

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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