mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
Adding authorize to api enterprise create
This commit is contained in:
@@ -13,7 +13,7 @@ module Api
|
||||
end
|
||||
|
||||
def create
|
||||
#authorize! :create, Enterprise
|
||||
authorize! :create, Enterprise
|
||||
|
||||
@enterprise = Enterprise.new(params[:enterprise])
|
||||
if @enterprise.save
|
||||
|
||||
Reference in New Issue
Block a user