module Api
class ChangesetCommentsController < ApiController
+ before_action :check_api_readable
before_action :check_api_writable
- before_action :check_api_readable, :except => [:create]
before_action :authorize
authorize_resource
module Api
class ChangesetsController < ApiController
+ before_action :check_api_readable
before_action :check_api_writable, :only => [:create, :update, :upload, :subscribe, :unsubscribe]
- before_action :check_api_readable, :except => [:index, :create, :update, :upload, :download, :subscribe, :unsubscribe]
before_action :setup_user_auth, :only => [:show]
before_action :authorize, :only => [:create, :update, :upload, :close, :subscribe, :unsubscribe]
module Api
class NodesController < ApiController
+ before_action :check_api_readable
before_action :check_api_writable, :only => [:create, :update, :delete]
- before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]
authorize_resource
module Api
class RelationsController < ApiController
+ before_action :check_api_readable
before_action :check_api_writable, :only => [:create, :update, :delete]
- before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]
authorize_resource
module Api
class TracesController < ApiController
- before_action :check_api_readable, :only => [:show, :data]
+ before_action :check_api_readable
before_action :check_api_writable, :only => [:create, :update, :destroy]
before_action :set_locale
before_action :authorize
module Api
class WaysController < ApiController
+ before_action :check_api_readable
before_action :check_api_writable, :only => [:create, :update, :delete]
- before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]
authorize_resource