lib/clubhouse/concerns/controllers/organizations_controller.rb in clubhouse-0.1.0 vs lib/clubhouse/concerns/controllers/organizations_controller.rb in clubhouse-0.2.0
- old
+ new
@@ -19,11 +19,12 @@
render json: organization, status: :created
end
def check
- authorize!(fetch_organization)
- head :ok
+ skip_authorization
+
+ head :ok if Organization.validate_attributes!(name: params[:id])
end
def show
organization = authorize!(fetch_organization)
render json: organization, status: :ok