<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Yii Framework Access Control Lists</title> <atom:link href="http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/feed/" rel="self" type="application/rss+xml" /><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/</link> <description>Translating Geek Into English</description> <lastBuildDate>Thu, 09 Feb 2012 15:50:46 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Larry</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-16181</link> <dc:creator>Larry</dc:creator> <pubDate>Wed, 23 Nov 2011 00:13:50 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-16181</guid> <description>Thanks for the input, Klaus.</description> <content:encoded><![CDATA[<p>Thanks for the input, Klaus.</p> ]]></content:encoded> </item> <item><title>By: Klaus</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-15934</link> <dc:creator>Klaus</dc:creator> <pubDate>Sat, 19 Nov 2011 10:49:41 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-15934</guid> <description>I think you often needs to check whether the logged in user is the owner of a post.
And when you only need this as role management it is better do it without rbac because you must do the same then mindhout says.
And when you have for example a task updateOwnPost and check only this there are 3 queries needed. When you check only for an operation like update then there are needed 6 or seven queries to check it.
Read the rbac docs.
For simple said I agree with Larry. When you not need a complex role system wiht many of roles tasks and operations it is better to do this wiht ACL.</description> <content:encoded><![CDATA[<p>I think you often needs to check whether the logged in user is the owner of a post.<br
/> And when you only need this as role management it is better do it without rbac because you must do the same then mindhout says.<br
/> And when you have for example a task updateOwnPost and check only this there are 3 queries needed. When you check only for an operation like update then there are needed 6 or seven queries to check it.<br
/> Read the rbac docs.<br
/> For simple said I agree with Larry. When you not need a complex role system wiht many of roles tasks and operations it is better to do this wiht ACL.</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-14585</link> <dc:creator>Larry</dc:creator> <pubDate>Sat, 05 Nov 2011 13:32:15 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-14585</guid> <description>It sounds like going the more formal route of an RBAC would seem to make the most sense. I think of ACL as being a relatively simple approach and the problem is it needs to be hardcoded into each controller, which would be unmanageable in your case, I suspect. Thanks for the nice words!</description> <content:encoded><![CDATA[<p>It sounds like going the more formal route of an RBAC would seem to make the most sense. I think of ACL as being a relatively simple approach and the problem is it needs to be hardcoded into each controller, which would be unmanageable in your case, I suspect. Thanks for the nice words!</p> ]]></content:encoded> </item> <item><title>By: Icarus A</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-14509</link> <dc:creator>Icarus A</dc:creator> <pubDate>Fri, 04 Nov 2011 12:10:25 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-14509</guid> <description>Larry, your tutorial series on Yii is really a great resource for the community, and more so for people just beginning on Yii, since these are specific use-case based deep dives.Wondering if your method would be a good natural fit to where several thousand (maybe couple of hundred thousand) users, each having their own &quot;private&quot; content. E.g.user0001 has access to content0001a, content0001b, content0001c...
user0002 has access to content0002a, content0002b, content0002c...
...
user000N has access to content000Na, content000Nb, content000Nc...although all users, do have access to some limited shared / common content as well. The content in question is of sensitive nature (e.g. scanned tax filing images etc.), so the ACL needs to be pretty much bullet proof.Would the ACL method scale well as per this use case ?</description> <content:encoded><![CDATA[<p>Larry, your tutorial series on Yii is really a great resource for the community, and more so for people just beginning on Yii, since these are specific use-case based deep dives.</p><p>Wondering if your method would be a good natural fit to where several thousand (maybe couple of hundred thousand) users, each having their own &#8220;private&#8221; content. E.g.</p><p>user0001 has access to content0001a, content0001b, content0001c&#8230;<br
/> user0002 has access to content0002a, content0002b, content0002c&#8230;<br
/> &#8230;<br
/> user000N has access to content000Na, content000Nb, content000Nc&#8230;</p><p>although all users, do have access to some limited shared / common content as well. The content in question is of sensitive nature (e.g. scanned tax filing images etc.), so the ACL needs to be pretty much bullet proof.</p><p>Would the ACL method scale well as per this use case ?</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-13235</link> <dc:creator>Larry</dc:creator> <pubDate>Thu, 13 Oct 2011 20:42:19 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-13235</guid> <description>Hello Alex. === is an &lt;em&gt;identical&lt;/em&gt; comparison; == is an &lt;em&gt;equality&lt;/em&gt; comparison. It&#039;s best to make identical comparisons in situations where you want to distinguish between true-like values and actual true, or false-like values (such as 0) and actual false. :: is the scope resolution operator, used to refer to a member of a &lt;em&gt;class&lt;/em&gt;. -&gt; is for referring to a member of an &lt;em&gt;object&lt;/em&gt;. None of these are particular to frameworks; they&#039;re part of PHP proper.</description> <content:encoded><![CDATA[<p>Hello Alex. === is an <em>identical</em> comparison; == is an <em>equality</em> comparison. It&#8217;s best to make identical comparisons in situations where you want to distinguish between true-like values and actual true, or false-like values (such as 0) and actual false. :: is the scope resolution operator, used to refer to a member of a <em>class</em>. -&gt; is for referring to a member of an <em>object</em>. None of these are particular to frameworks; they&#8217;re part of PHP proper.</p> ]]></content:encoded> </item> <item><title>By: Alex</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-13138</link> <dc:creator>Alex</dc:creator> <pubDate>Tue, 11 Oct 2011 12:01:57 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-13138</guid> <description>Hi Larry! Thanx again for the great post! Just to get everything ordered in future - can you explain why somewhere is used === instead of == and :: instead of -&gt; ?...</description> <content:encoded><![CDATA[<p>Hi Larry! Thanx again for the great post! Just to get everything ordered in future &#8211; can you explain why somewhere is used === instead of == and :: instead of -&gt; ?&#8230;</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-12070</link> <dc:creator>Larry</dc:creator> <pubDate>Sat, 27 Aug 2011 12:39:45 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-12070</guid> <description>Well, you could just use in_array(). That&#039;s not a &quot;Yii-way&quot; necessarily, but it&#039;d only take a line of code.</description> <content:encoded><![CDATA[<p>Well, you could just use in_array(). That&#8217;s not a &#8220;Yii-way&#8221; necessarily, but it&#8217;d only take a line of code.</p> ]]></content:encoded> </item> <item><title>By: Nathan</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-12015</link> <dc:creator>Nathan</dc:creator> <pubDate>Wed, 24 Aug 2011 12:59:08 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-12015</guid> <description>Hello,
Regarding you last example (checking if the event being deleted belongs to the user), what if the relationship is MANY_MANY, that is, I don&#039;t have a &quot;ownerId&quot; but an array of owners?I could I guess iterate over the values of the array but I&#039;m wondering if there is a Yii-way of doing this.</description> <content:encoded><![CDATA[<p>Hello,<br
/> Regarding you last example (checking if the event being deleted belongs to the user), what if the relationship is MANY_MANY, that is, I don&#8217;t have a &#8220;ownerId&#8221; but an array of owners?</p><p>I could I guess iterate over the values of the array but I&#8217;m wondering if there is a Yii-way of doing this.</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-11978</link> <dc:creator>Larry</dc:creator> <pubDate>Mon, 22 Aug 2011 18:16:16 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-11978</guid> <description>Thanks for the nice words. Glad you liked it. As for your question, well, my solution is a bit of a hack, as I said, and hacking framework (i.e., standardized) code isn&#039;t really a good thing. And the RBAC allows finer control. I&#039;m not saying you should rush out to use RBAC, but it has its merits, of course.</description> <content:encoded><![CDATA[<p>Thanks for the nice words. Glad you liked it. As for your question, well, my solution is a bit of a hack, as I said, and hacking framework (i.e., standardized) code isn&#8217;t really a good thing. And the RBAC allows finer control. I&#8217;m not saying you should rush out to use RBAC, but it has its merits, of course.</p> ]]></content:encoded> </item> <item><title>By: MetaCrawler</title><link>http://www.larryullman.com/2010/01/14/yii-framework-access-control-lists/comment-page-1/#comment-11892</link> <dc:creator>MetaCrawler</dc:creator> <pubDate>Fri, 19 Aug 2011 08:12:55 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=478#comment-11892</guid> <description>Very nice post! Helped me a lot! :) THANKS!It is much easier to understand than the yii  role-based-acces-control article on yiiframework.com ...
I already spent a lot of time on the rbac tutorial... and I still have some understanding problems.
I read your post only one time and understood everything.But I have a little question:
What is the &quot;advantage&quot; of using the &quot;Yii-RBAC&quot; instead of your solution?
Your solution is much easier, less work... and it does the same thing... (or not?)Best Regards from germany! :)</description> <content:encoded><![CDATA[<p>Very nice post! Helped me a lot! <img
src='http://cloudfront.larryullman.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> THANKS!</p><p>It is much easier to understand than the yii  role-based-acces-control article on yiiframework.com &#8230;<br
/> I already spent a lot of time on the rbac tutorial&#8230; and I still have some understanding problems.<br
/> I read your post only one time and understood everything.</p><p>But I have a little question:<br
/> What is the &#8220;advantage&#8221; of using the &#8220;Yii-RBAC&#8221; instead of your solution?<br
/> Your solution is much easier, less work&#8230; and it does the same thing&#8230; (or not?)</p><p>Best Regards from germany! <img
src='http://cloudfront.larryullman.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.larryullman.com @ 2012-02-10 05:31:03 by W3 Total Cache -->
