Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
e5673b304d
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ class AspectsController < ApplicationController
|
|||
flash[:notice] = I18n.t('aspects.create.success', :name => @aspect.name)
|
||||
if current_user.getting_started
|
||||
redirect_to :back
|
||||
elsif request.env['HTTP_REFERER'].includes("aspects/manage")
|
||||
redirect_to :back
|
||||
else
|
||||
respond_with @aspect
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue