before_filter :check_database_writable, :only => [:create, :edit, :delete, :make_public]
before_filter :check_api_readable, :only => [:api_details, :api_data]
before_filter :check_api_writable, :only => [:api_create]
before_filter :check_database_writable, :only => [:create, :edit, :delete, :make_public]
before_filter :check_api_readable, :only => [:api_details, :api_data]
before_filter :check_api_writable, :only => [:api_create]