<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>doc/examples/tokens/read_only.xml.erb</filename>
    </added>
    <added>
      <filename>lib/tasks/tokens.rake</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -143,11 +143,10 @@
     = render :partial =&gt; 'record', :collection =&gt; @domain.records_without_soa
 
 - unless @domain.slave?
-
-  = link_to_function prototip_info_icon('database_add.png', 'record-template-new'), &quot;displayRecordForm()&quot;
-  = link_to_function &quot;New record&quot;, &quot;displayRecordForm()&quot;
-
   - if current_user || current_token.allow_new_records?
+    = link_to_function prototip_info_icon('database_add.png', 'record-template-new'), &quot;displayRecordForm()&quot;
+    = link_to_function &quot;New record&quot;, &quot;displayRecordForm()&quot;
+
     #record-form-div{ :style =&gt; &quot;display: none;&quot; }
       - remote_form_for( :record, @record, :url =&gt; formatted_domain_records_path( @domain, :js ), :html =&gt; { :id =&gt; 'record-form' } ) do |f|
         %table</diff>
      <filename>app/views/domains/show.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -52,7 +52,7 @@ ActionController::Routing::Routes.draw do |map|
   map.reports '/reports/:action/:id' , :controller =&gt; 'reports' , :action =&gt; 'index'
   
   # AuthTokens
-  map.resources :auth_tokens
+  map.resource :auth_token
   map.token '/token/:token', :controller =&gt; 'sessions', :action =&gt; 'token'
   
   # Authentication routes</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,3 +18,13 @@ User.seed( :login ) do |s|
 end
 admin = User.find_by_login('admin')
 admin.roles &lt;&lt; Role.find_by_name('admin')
+
+# A token user
+User.seed( :login ) do |s|
+  s.login = 'token'
+  s.email = 'tokens@example.com'
+  s.password = 'secret'
+  s.password_confirmation = 'secret'
+end
+token = User.find_by_login( 'token' )
+token.roles &lt;&lt; Role.find_by_name('auth_token')</diff>
      <filename>db/fixtures/users.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f79f17c3d314df11cadbee64b1582f17531d8252</id>
    </parent>
  </parents>
  <author>
    <name>Kenneth Kalmer</name>
    <email>kenneth.kalmer@gmail.com</email>
  </author>
  <url>http://github.com/kennethkalmer/powerdns-on-rails/commit/e16092b9583e8f4fe473b7035ea4f8241cacc2fd</url>
  <id>e16092b9583e8f4fe473b7035ea4f8241cacc2fd</id>
  <committed-date>2009-02-18T11:52:47-08:00</committed-date>
  <authored-date>2009-02-18T11:52:47-08:00</authored-date>
  <message>New rake task for generating example auth token requests</message>
  <tree>fa62310762ce0dbe467dc3f66f0283a649b25860</tree>
  <committer>
    <name>Kenneth Kalmer</name>
    <email>kenneth.kalmer@gmail.com</email>
  </committer>
</commit>
