Fixed a bug that was preventing deleting sites
This commit is contained in:
parent
2244aa782a
commit
1c04b39c7e
@ -13,7 +13,7 @@ module Admin
|
|||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
@site = current_admin.sites.detect { |s| s._id == params[:id] }
|
@site = current_admin.sites.find(params[:id])
|
||||||
|
|
||||||
if @site != current_site
|
if @site != current_site
|
||||||
@site.destroy
|
@site.destroy
|
||||||
|
Loading…
Reference in New Issue
Block a user