lib/decidim/access_requests/verification/engine.rb in decidim-access_requests-0.16.0 vs lib/decidim/access_requests/verification/engine.rb in decidim-access_requests-0.16.1
- old
+ new
@@ -16,9 +16,16 @@
initializer "decidim_access_requests.assets" do |app|
app.config.assets.precompile += %w(decidim_access_requests_manifest.css
decidim/access_requests/verification.scss)
end
+
+ def load_seed
+ # Enable the `:access_requests` authorization
+ org = Decidim::Organization.first
+ org.available_authorizations << :access_requests
+ org.save!
+ end
end
end
end
end