<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1066: Default reader role too permissive</title>
    <link>http://localhost/ticket/1066</link>
    <description>&lt;p&gt;
The definition of the 'reader' role includes creating packages, which is too permissive for some CKAN instances (e.g. DGU). 'Reader' suggests only reading, so I think this role should avoid creating and editing.
&lt;/p&gt;
&lt;p&gt;
All projects so far want all roles to be able to create users, so this stays as a Reader action for now, as a convenience.
&lt;/p&gt;
&lt;p&gt;
Implementation:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Action.PACKAGE_CREATE removed from reader's default_role_actions
&lt;/li&gt;&lt;li&gt;Visitor has a new default role, called 'anon_editor' which can edit packages, but not groups / auth groups - you have to log in for that.
&lt;/li&gt;&lt;li&gt;Migration script not needed?
&lt;/li&gt;&lt;li&gt;Code comments written, to make clear the suggested policy
&lt;/li&gt;&lt;/ul&gt;</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1066</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Fri, 01 Apr 2011 08:08:51 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1066#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1066#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1066?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Mon, 04 Apr 2011 08:04:06 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1066#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1066#comment:2</guid>
      <description>
        &lt;p&gt;
Need a new role 'ANON_EDITOR' which is the default role for Visitor, which can create packages, but not groups.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Mon, 04 Apr 2011 09:04:52 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1066#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1066#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1066?action=diff&amp;amp;version=3"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Mon, 04 Apr 2011 15:18:31 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1066#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/1066#comment:4</guid>
      <description>
        &lt;p&gt;
Migrations:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Default (open) CKAN instances will have visitor as a reader on the system, and will have to upgrade them to anon_editor.
&lt;/li&gt;&lt;li&gt;DGU &amp;amp; DataGM instances have visitor as a reader on system and must stay like that.
&lt;/li&gt;&lt;li&gt;Pudo's specially locked instance, where editor has been changed to only read can now use the 'reader' role (assuming he's happy for them to create users)
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Migration script (37) is designed to cope with the default (open) setup, and the other special cases must be dealt with using CLI at the time of upgrade:
&lt;/p&gt;
&lt;p&gt;
DGU &amp;amp; DataGM must run:
&lt;/p&gt;
&lt;pre class="wiki"&gt;paster rights remove visitor anon_editor system:
paster rights make visitor reader system:
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Mon, 04 Apr 2011 15:48:56 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1066#comment:5</link>
      <guid isPermaLink="false">http://localhost/ticket/1066#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Done on branch defect-1066-reader-too-permissive and merged into release-1.3.3
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>