Unverified Commit 5a064b02 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Get group members only if group not nil


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent c8d270629a76
......@@ -17,7 +17,10 @@ def index
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