<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://drupaldojo.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>security</title>
 <link>http://drupaldojo.com/topic/security</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Lesson #08 - Node Access &amp; db_rewrite_sql</title>
 <link>http://drupaldojo.com/lesson/node-access-and-db-rewrite-sql</link>
 <description>&lt;p&gt;&lt;strong&gt;Update: Now with VictorKane&#039;s awesome Class Notes!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This lesson provides an introduction to Drupal&#039;s node access system. Initially, we&#039;ll create a basic module that uses hook_db_rewrite_sql() to implement a node access restriction system.&lt;/p&gt;
&lt;p&gt;Once the concepts are grasped we&#039;ll lift the hood on some other Drupal access control modules and see how these work using Drupal&#039;s built-in node_grant abilities.&lt;/p&gt;
&lt;p&gt;There were 75 participants in IRC and 50 people in the skypecast today.  &lt;/p&gt;
&lt;h2&gt;Basic Node Access Control&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Create a basic module that restricts access to anonymous users but allows access for authenticated users on certain nodes.&lt;/li&gt;
&lt;li&gt;Our personal access table and pre-populating it (for demonstration purposes).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://api.drupal.org/api/head/function/hook_form_alter&quot;&gt;hook_form_alter()&lt;/a&gt; to add a checkbox to the node edit form.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://api.drupal.org/api/head/function/hook_nodeapi&quot;&gt;hook_nodeapi()&lt;/a&gt; to create a flag on the node and apply viewing access control.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://api.drupal.org/api/head/function/hook_db_rewrite_sql&quot;&gt;hook_db_rewrite_sql()&lt;/a&gt; to implement the &lt;strong&gt;list view&lt;/strong&gt; access control.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;http://drupaldojo.com/lesson/node-access-and-db-rewrite-sql&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <category domain="http://drupaldojo.com/topic/node-access">node access</category>
 <category domain="http://drupaldojo.com/topic/security">security</category>
 <category domain="http://drupaldojo.com/taxonomy/term/95">lesson</category>
 <category domain="http://drupaldojo.com/lesson/08">08</category>
 <pubDate>Sun, 25 Feb 2007 16:59:29 -0500</pubDate>
 <dc:creator>Senpai</dc:creator>
 <guid isPermaLink="false">42 at http://drupaldojo.com</guid>
</item>
<item>
 <title>Hook_perm walkthrough</title>
 <link>http://drupaldojo.com/minilesson/hook-perm-walkthrough</link>
 <description>&lt;p&gt;Dmitri gives us an insight into how hook_perm works - it&#039;s easier than you think, and a vital part of permissions control.&lt;/p&gt;
&lt;p&gt;Thanks again to Dipen for the lesson notes!&lt;/p&gt;
</description>
 <category domain="http://drupaldojo.com/topic/hooks">hooks</category>
 <category domain="http://drupaldojo.com/topic/security">security</category>
 <category domain="http://drupaldojo.com/session-type/mini-lesson">mini-lesson</category>
 <pubDate>Mon, 23 Apr 2007 03:30:59 -0400</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">103 at http://drupaldojo.com</guid>
</item>
<item>
 <title>HowTo: Safely setup a multisite installation</title>
 <link>http://drupaldojo.com/resource/howto-safely-setup-multisite-installation</link>
 <description></description>
 <category domain="http://drupaldojo.com/topic/howto">howto</category>
 <category domain="http://drupaldojo.com/topic/multisite">multisite</category>
 <category domain="http://drupaldojo.com/topic/security">security</category>
 <pubDate>Sat, 17 Feb 2007 02:05:16 -0500</pubDate>
 <dc:creator />
 <guid isPermaLink="false">17 at http://drupaldojo.com</guid>
</item>
</channel>
</rss>
