#692: updated groups/profile_controller
This commit is contained in:
parent
e5af275c3a
commit
f0caf6a9f9
|
@ -22,8 +22,7 @@ class Groups::ProfileController < Groups::BaseController
|
|||
end
|
||||
|
||||
def create
|
||||
@group = Group.new params[:group]
|
||||
@group.owner = current_user
|
||||
@group = current_user.own_groups.new params[:group]
|
||||
if @group.save
|
||||
flash[:notice] = t('flash.group.saved')
|
||||
redirect_to group_path(@group)
|
||||
|
|
Loading…
Reference in New Issue