<?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: Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679?start=0#post4105</link>
			<description>&lt;p&gt;&lt;em&gt;&amp;gt; The option to inherit page permissions is evaluated each time that the page is&lt;br /&gt;&amp;gt; accessed, not just when it is created.&lt;/p&gt;&lt;p&gt;&amp;gt; When set to 'inherit', the page should instead evaluate the permissions of the current user&lt;br /&gt;&amp;gt; against the settings of the parent page. You can always change this setting for child pages.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;OK, this is an option.. but then we need to extend the interface so that we can set a permission also to inherit. So we have tree states: Enable, disable, inherit.&lt;/p&gt;&lt;p&gt;If we implement that behavior, we need to extend the Permission system because at the moment there is no way to deny a permission. I will add a field &quot;type&quot; to the Permission class which can have three values: -1 (deny), 0 (inherit), 1 (allow).&lt;br /&gt;&quot;Inherit&quot; is not really needed, but I think it's a good thing to support it explicitly.&lt;/p&gt;&lt;p&gt;What about the other question?&lt;/p&gt;&lt;p&gt;&lt;em&gt;My next question is about how the permissions should work. Iâ€™ll create the permission â€œEdit pageâ€ and in the security tab you can then assign this right to the various groups. So what happens now on the access tab of a specific page? Letâ€™s assume group A has the â€œEdit pageâ€ permission and group B not. &lt;/p&gt;&lt;p&gt;Is A now allowed to edit all pages or just pages where I defined the Edit page permission with that specific page ID? Should it be possible to grant B the right to one specific page without the â€œglobal edit pageâ€ permission?&lt;/em&gt;&lt;/p&gt;&lt;p&gt;GSoC finishes on Monday (pencils down) so please tell me exactly on what you are working and on what I should work next. Currently I'm extending the Permission system to allow &quot;deny permissions&quot;.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679?start=0#post4105&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3679?start=0#post4105&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Aug 2007 22:07:22 +1200</pubDate>
			<dc:creator>Markus</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679?start=0#post4105</guid>
		</item>
		
		<item>
			<title>Re: Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679?start=0#post4068</link>
			<description>&lt;p&gt;The MemberTableField probably isn't the best way to go about it, as adding more columns as the  number of groups increases might be a pain.&lt;/p&gt;&lt;p&gt;You might need to create a FormField from scratch.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679?start=0#post4068&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3679?start=0#post4068&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Aug 2007 09:04:18 +1200</pubDate>
			<dc:creator>Hayden</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679?start=0#post4068</guid>
		</item>
		
		<item>
			<title>Re: Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679?start=0#post4060</link>
			<description>&lt;p&gt;The option to inherit page permissions is evaluated each time that the page is accessed, not just when it is created.&lt;/p&gt;&lt;p&gt;When set to 'inherit', the page should instead evaluate the permissions of the current user against the settings of the parent page. You can always change this setting for child pages.&lt;/p&gt;&lt;p&gt;To use the department homepage example: yes, the managers should be the only ones with permission to change the homepage, but you can still set other permissions on the child pages:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;Homepage: editable by managers, visible to all&lt;br /&gt;-Department: visible to department members&lt;br /&gt;--Department page 1: visible to department members&lt;br /&gt;---Nested department page: visible to department managers&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;In this case, the department page would have specific permissions, and department page would inherit from that. The nested page would then have different permissions.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679?start=0#post4060&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3679?start=0#post4060&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Aug 2007 08:54:09 +1200</pubDate>
			<dc:creator>Hayden</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679?start=0#post4060</guid>
		</item>
		
		<item>
			<title>Re: Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679?start=0#post4051</link>
			<description>&lt;p&gt;Iâ€™m currently implementing the new permissions system but I encounter a lot of problems  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/sad.gif'&gt; &lt;/p&gt;&lt;p&gt;The first one is that Iâ€™m really unsure if the permissions should be inherited in the way as described above? Just think of a website for a company that has different departments. All pages of a department are subpages of the department homepage. Normally only the department manager (or his secretary) should have the right to change the department homepage, but the subpages should be changeable for all employees in the department.&lt;/p&gt;&lt;p&gt;So I think the best would be to inherit the permissions only on page creation - if at all.&lt;/p&gt;&lt;p&gt;My next question is about how the permissions should work. Iâ€™ll create the permission â€œEdit pageâ€ and in the security tab you can then assign this right to the various groups. So what happens now on the access tab of a specific page?  Letâ€™s assume group A has the â€œEdit pageâ€ permission and group B not.&lt;/p&gt;&lt;p&gt;Is A now allowed to edit all pages or just pages where I defined the Edit page permission with that specific page ID? Should it be possible to grant B the right to one specific page without the â€œglobal edit pageâ€ permission?&lt;/p&gt;&lt;p&gt;And finally the last question is how I can implement &lt;a href=&quot;http://www.silverstripe.com/assets/Attachments/Proposed-security-interface.png&quot;&gt;Timâ€™s matrix style&lt;/a&gt; to display/edit the permissions (maybe a transposed version - which means groups as columns and permissions as rows).&lt;/p&gt;&lt;p&gt;I played with MemberTableField but I had no success  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/sad.gif'&gt; &lt;/p&gt;&lt;p&gt;I wanted to create a component to which I can pass a parameter that specifies which permissions (and maybe with which labels) should be shown, so that for example the page access tab shows only â€œView this pageâ€ and â€œEdit this pageâ€ whereas the matrix in the security tab shows all permissions.&lt;/p&gt;&lt;p&gt;Please look also into sapphire/security/Permission.php. Hayden created permission groups that allow the grouping of permissions so that they can be displayed quite nice.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679?start=0#post4051&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3679?start=0#post4051&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Aug 2007 05:19:47 +1200</pubDate>
			<dc:creator>Markus</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679?start=0#post4051</guid>
		</item>
		
		<item>
			<title>Re: Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679?start=0#post3920</link>
			<description>&lt;p&gt;One thing not sure if you've touched on this... Could you have an option to show only to Non-Logged in users....  This would be great for having a home page for Anonymous users and then one specific for logged in users... &lt;br /&gt;Also can you add the access tab to all items (Redirects, etc...) I know there are a couple that don't have it...&lt;/p&gt;&lt;p&gt;BWT I'm a SS noob and this stuff rocks I have my site up and running and so far it's gone great!...  Please keep it coming...&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679?start=0#post3920&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3679?start=0#post3920&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 14 Aug 2007 03:51:23 +1200</pubDate>
			<dc:creator>Whizzle</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679?start=0#post3920</guid>
		</item>
		
		<item>
			<title>Re: Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679?start=0#post3760</link>
			<description>&lt;p&gt;Hi Markus&lt;/p&gt;&lt;p&gt;Please see my note &lt;a href=&quot;http://www.silverstripe.com/general-discussion/flat/3340?showPost=3738&quot;&gt;here&lt;/a&gt; re the interface for this - we are going to need to use the matrix style interface for this.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679?start=0#post3760&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3679?start=0#post3760&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 09 Aug 2007 22:31:00 +1200</pubDate>
			<dc:creator>Tim</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679?start=0#post3760</guid>
		</item>
		
		<item>
			<title>Re: Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679?start=0#post3746</link>
			<description>&lt;p&gt;This looks good.  I would recommend implementing the group selector as a subclass of FormField that is designed to save to any many-many join.  This is what we've done with TreeMultiselectField and CheckboxSetField and it makes the code nice really reusable.  It will also mean that you could easily switch between the control you've presented and CSField / TMField.&lt;/p&gt;&lt;p&gt;Saving to a many-many join is pretty straight forward: treat the form field name as the name of a method on the associated data object, and call setByIdList() on the ComponentSet that gets returned&lt;/p&gt;&lt;p&gt;See &lt;a href=&quot;http://open.silverstripe.com/browser/modules/sapphire/trunk/forms/CheckboxSetField.php#L102&quot;&gt;this piece of CheckboxSet&lt;/a&gt; for a sample.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679?start=0#post3746&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3679?start=0#post3746&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 09 Aug 2007 15:49:10 +1200</pubDate>
			<dc:creator>Sam</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679?start=0#post3746</guid>
		</item>
		
		<item>
			<title>Re: Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679?start=0#post3689</link>
			<description>&lt;p&gt;&lt;strong&gt;++ Update ++&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;I'll change the interface of the &quot;Access&quot; tab which currently looks as follows:&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;http://www.silverstripe.com/assets/Attachments/accesstab3.gif&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;to an interface like:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;http://www.silverstripe.com/assets/Attachments/accesstabnew2.gif&quot; /&gt;&lt;/p&gt;&lt;p&gt;Has someone a better idea how to label the two list boxes (&quot;Available groups&quot;, &quot;Selected groups&quot;)? &lt;/p&gt;&lt;p&gt;See also &lt;a href=&quot;http://www.silverstripe.com/general-discussion/flat/3340?showPost=3686&quot;&gt;this thread&lt;/a&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679?start=0#post3689&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3679?start=0#post3689&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 09 Aug 2007 02:29:42 +1200</pubDate>
			<dc:creator>Markus</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679?start=0#post3689</guid>
		</item>
		
		<item>
			<title>Page security</title>
			<link>http://www.silverstripe.org/archive/show/3679#post3679</link>
			<description>&lt;p&gt;The next days I'll focus on the page security stuff. I'll implement it as follows:&lt;/p&gt;&lt;p&gt;The &quot;Access&quot; tab will look at it does now:&lt;/p&gt;&lt;p&gt;Who can view this page on my site?&lt;br /&gt; - Anyone&lt;br /&gt; - Logged-in users&lt;br /&gt; - Only these people (choose a group in the provided list)&lt;/p&gt;&lt;p&gt;Who can edit this inside the CMS?&lt;br /&gt; Anyone who can log-in to the CMS&lt;br /&gt; Only these people (choose a group in the provided list)&lt;/p&gt;&lt;p&gt;This works already, so what I'll add next is inheritance:&lt;/p&gt;&lt;p&gt;Page A&lt;br /&gt; |-Page B (child of A)&lt;/p&gt;&lt;p&gt;If view/edit of A is set to a specific group, page B requires also that group. If set to logged in users, B requires a logged in user or a specific group and if set to anyone page B can be restricted to logged in users or a specific group.&lt;/p&gt;&lt;p&gt;Do you think it makes sense to implement something so that it is possible to select more than one group? Something like &quot;This is visible only by&quot; ... &quot;the specified groups:&quot; and then something like a list box where one can select the groups?&lt;/p&gt;&lt;p&gt;What about creating two pseudo-groups, namely &quot;Anyone&quot; and &quot;Authenticated Users&quot;?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Page security &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679#post3679&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/3679#post3679&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 09 Aug 2007 01:53:49 +1200</pubDate>
			<dc:creator>Markus</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3679#post3679</guid>
		</item>
		

	</channel>
</rss>