We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fb95b4 commit dad0e0aCopy full SHA for dad0e0a
1 file changed
app/controllers/web/organizations_controller.rb
@@ -8,6 +8,7 @@ def index; end
8
# GET /organizations/new
9
def new
10
@organization = Organization.new
11
+ authorize! :create, @organization
12
end
13
14
# GET /organizations/:id/edit
@@ -16,6 +17,7 @@ def edit; end
16
17
# POST /organizations
18
def create
19
@organization = Organization.new(organization_params)
20
21
22
if @organization.save
23
redirect_to web_organizations_path, notice: t('.notice')
0 commit comments