- if not @object.ping params
- return render_not_found "object not found"
- end
- # Render the :superuser view (i.e., include the ping_secret) even
- # if !current_user.is_admin. This is safe because @object.ping's
- # success implies the ping_secret was already known by the client.
- render json: @object.as_api_response(:superuser)
- end
-
- def find_objects_for_index
- # all users can list all keep disks
- @objects = model_class.where('1=1')
- super
- end
-
- def find_object_by_uuid
- @object = KeepDisk.where(uuid: (params[:id] || params[:uuid])).first
- if !@object && current_user.andand.is_admin