<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: Changing the way the group heirarchy behaves</title>
			<link>http://www.silverstripe.org/archive/show/112459?start=0#post114367</link>
			<description>&lt;p&gt;thanks for the good example - yeah, it seems logical that a group inheritance should be toward more specific (=children) rather than more generic (=parents) - it allows for much more finegrained controls.&lt;br /&gt;although this is a one-line fix, i think we need some unit tests to verify this behaviour (on GroupTest.php), with this hierarchy:&lt;/p&gt;&lt;p&gt;X (member1)&lt;br /&gt;--Y1 (member2)&lt;br /&gt;----Z1 (member3)&lt;br /&gt;--Y2 (member4)&lt;/p&gt;&lt;p&gt;- member1 has access to X, Y1, Z1, Y2&lt;br /&gt;- member2 has access to Y1, Z1&lt;br /&gt;- member3 has access to Z1&lt;br /&gt;- member4 has access to Y2&lt;/p&gt;&lt;p&gt;Unit tests are fairly easy to write (see &lt;a href=&quot;http://doc.silverstripe.com/doku.php?id=testing-guide&quot;&gt;http://doc.silverstripe.com/doku.php?id=testing-guide&lt;/a&gt;) - ScottiouS, do you want to give it a go?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Changing the way the group heirarchy behaves &lt;a href=&quot;http://www.silverstripe.org/archive/show/112459?start=0#post114367&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/112459?start=0#post114367&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 05 Jul 2008 11:03:10 +1200</pubDate>
			<dc:creator>Ingo</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/112459?start=0#post114367</guid>
		</item>
		
		<item>
			<title>Changing the way the group heirarchy behaves</title>
			<link>http://www.silverstripe.org/archive/show/112459#post112459</link>
			<description>&lt;p&gt;Best explained in an example:&lt;/p&gt;&lt;p&gt;Member A is a member of the Group Y&lt;/p&gt;&lt;p&gt;Group Y is the child of X and parent of Z&lt;/p&gt;&lt;p&gt;So folder structure looks like &lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;X&lt;br /&gt;| - Y&lt;br /&gt;|     | - Z&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Currently in silverstripe Member A has access to Group Y (of which they are a member) and Group X (of which they inherit) and not group Z.&lt;/p&gt;&lt;p&gt;What I required was the opposite.. so Member A has access to children rather than parent groups. By changing the code below you get Member A having access to Group Y and Group Z, not Group X.&lt;/p&gt;&lt;p&gt;/sapphire/security/Member.php&lt;/p&gt;&lt;p&gt;Changed one line the Groups() function from:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$group-&amp;gt;collateAncestorIDs());&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;to:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$group-&amp;gt;collateFamilyIDs());&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;I could not see a simpler way of changing this by not editing the core. Hope this helps some people.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Changing the way the group heirarchy behaves &lt;a href=&quot;http://www.silverstripe.org/archive/show/112459#post112459&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/112459#post112459&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 04 Jul 2008 12:23:54 +1200</pubDate>
			<dc:creator>ScottiouS</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/112459#post112459</guid>
		</item>
		

	</channel>
</rss>