<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>declarative_authorization Google Group</title>
  <link>http://groups.google.com/group/declarative_authorization</link>
  <description>Declarative Authorization Rails Plugin http://steffenbartsch.com/blog/2008/09/delclarative-authorization http://github.com/stffn/declarative_authorization http://github.com/stffn/decl_auth_demo_app</description>
  <language>en</language>
  <item>
  <title>Is there a &quot;false&quot; scope?</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/65d270a2d9b63745/3b62535d99370b27?show_docid=3b62535d99370b27</link>
  <description>
  I&#39;m wondering if there is a way to create a rule the will always return an &lt;br&gt; empty result set... I am doing a search like: &lt;br&gt; @notes = Note.with_permission_to(:read) &lt;br&gt; But one user role type will never be able to read notes. If I don&#39;t &lt;br&gt; specify a rule for them, though, it throws an error, where I&#39;d like to just
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/65d270a2d9b63745</guid>
  <author>
  morto...@gmail.com
  (David Morton)
  </author>
  <pubDate>Mon, 13 May 2013 15:39:55 UT
</pubDate>
  </item>
  <item>
  <title>sql problems with has_many :through</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/37b4e2ce669a94de/10bc3b7406f81d26?show_docid=10bc3b7406f81d26</link>
  <description>
  I have a user and coshhform models &lt;br&gt; &lt;p&gt; class Coshhform &amp;lt; ActiveRecord::Base &lt;br&gt; &lt;p&gt; using_access_control &lt;br&gt; &lt;p&gt; has_many :coshhform_users &lt;br&gt; &lt;p&gt; has_many :users, :through =&amp;gt; :coshhform_users &lt;br&gt; &lt;p&gt; end &lt;br&gt; &lt;p&gt; and the other end of the association on user. I&#39;m using Devise for &lt;br&gt; Authentication. &lt;br&gt; &lt;p&gt;I have successfully set up declarative authorization for my other models
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/37b4e2ce669a94de</guid>
  <author>
  jbrambl...@gmail.com
  (Jonathan Bramble)
  </author>
  <pubDate>Wed, 08 May 2013 11:35:31 UT
</pubDate>
  </item>
  <item>
  <title>if_attribute fails on server but not Rails console</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/7b37a79679130178/0c378632f5252e1f?show_docid=0c378632f5252e1f</link>
  <description>
  I have an &#39;Application&#39; model which has_many owners through &lt;br&gt; application_owner_assignments as well as a similar relation of has_many &lt;br&gt; operators through application_operator_assignmen ts. &lt;br&gt; I wrote the following permission to give read access to anybody who owns or &lt;br&gt; operates an application: &lt;br&gt; # Operators can read applications
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/7b37a79679130178</guid>
  <author>
  cthie...@gmail.com
  (Chris)
  </author>
  <pubDate>Wed, 10 Apr 2013 18:44:09 UT
</pubDate>
  </item>
  <item>
  <title>Mountable engine</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/ee82691ede346b8d/88c2c5a7e1da3fbc?show_docid=88c2c5a7e1da3fbc</link>
  <description>
  Hello is it possible to work with declarative_authorization inside a &lt;br&gt; mountable engine please ? Let&#39;s say I have a model called Dog inside an &lt;br&gt; engine Zoo. So the constant is Zoo::Dog instead of just Dog. When Im trying &lt;br&gt; it it says &amp;quot;uninitialized constant Dog&amp;quot;. Is there a way to force DA to use &lt;br&gt; the Zoo prefix module as a prefix for the Dog model? The best would be an
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/ee82691ede346b8d</guid>
  <author>
  m...@jakubracek.net
  (Jakub Racek)
  </author>
  <pubDate>Thu, 07 Feb 2013 12:00:18 UT
</pubDate>
  </item>
  <item>
  <title>How to apply rules of superclass to subclasses automatically</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/0d65e841aa7e3d98/31fcda8dfd7d1540?show_docid=31fcda8dfd7d1540</link>
  <description>
  I have a model S and many subclass models A, B, C, D. ... &lt;br&gt; The same rules applied to both S and A B C D ... &lt;br&gt; However, I have to add the same rules to each subclasses repeatedly. &lt;br&gt; Is there a way to apply rules for S to A B C D automatically? &lt;br&gt; Thanks
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/0d65e841aa7e3d98</guid>
  <author>
  worldinmyhe...@gmail.com
  (Chao Yan)
  </author>
  <pubDate>Sat, 02 Feb 2013 05:30:13 UT
</pubDate>
  </item>
  <item>
  <title>:role_ids =&gt; intersects_with {user.role_ids} != :roles =&gt; intersects_with {user.roles}</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/07b3fe85b0a85a89/6e9e28e294c9333d?show_docid=6e9e28e294c9333d</link>
  <description>
  query &lt;br&gt; SELECT * FROM &amp;quot;screening_projects&amp;quot; WHERE ((&amp;quot;screening_projects&amp;quot;.&amp;quot;id&amp;quot; IN &lt;br&gt; (3,4,5)) OR (1=1)) &lt;br&gt; DA seems to be interpreting the :role_ids symbol as screening_projects.id &lt;br&gt; ( I don&#39;t know wehre that or 1=1 is coming from, and it&#39;s making the &lt;br&gt; role_id requirement useless) &lt;br&gt; SELECT * FROM (SELECT DISTINCT ON (&amp;quot;screening_projects&amp;quot;.id)
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/07b3fe85b0a85a89</guid>
  <author>
  langho...@neb.com
  (Brad Langhorst)
  </author>
  <pubDate>Wed, 16 Jan 2013 19:34:39 UT
</pubDate>
  </item>
  <item>
  <title>rule gets canceled out?</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/66034be10a764ec5/4955cff625324809?show_docid=4955cff625324809</link>
  <description>
  When I include both of the following roles into one role, it fails, but if &lt;br&gt; I remove the _family_manager include, it works. &lt;br&gt; role :some_kind_of_admin &lt;br&gt; includes :_family_manager &lt;br&gt; includes :_family_reader &lt;br&gt; end &lt;br&gt; role :_family_manager do &lt;br&gt; has_permission_on :families, :to =&amp;gt; :manage do &lt;br&gt; if_permitted_to :manage, :children
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/66034be10a764ec5</guid>
  <author>
  morto...@gmail.com
  (David Morton)
  </author>
  <pubDate>Fri, 04 Jan 2013 21:21:24 UT
</pubDate>
  </item>
  <item>
  <title>with_permission_to confusion</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/e18bf85a57189b2d/263829c4c4ab0f30?show_docid=263829c4c4ab0f30</link>
  <description>
  Users have permission to manage articles for particular combinations of &lt;br&gt; location and category. &lt;br&gt; For example Dave may be allowed to manage HR articles for Paris. Paul may &lt;br&gt; be allowed to manage Business articles for London. &lt;br&gt; The models and their associations are as follows: &lt;br&gt; - user has many permissions
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/e18bf85a57189b2d</guid>
  <author>
  marctau...@googlemail.com
  </author>
  <pubDate>Sat, 22 Dec 2012 19:17:27 UT
</pubDate>
  </item>
  <item>
  <title>check if a group of ids is in array of ids of my user</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/4f7bf37f7c895192/0cc310299b74b17a?show_docid=0cc310299b74b17a</link>
  <description>
  Hi, &lt;br&gt; let&#39;s say this: &lt;br&gt; user.foo_ids = [1,2] &lt;br&gt; object1.foo_ids = [1] =&amp;gt; permitted &lt;br&gt; object2.foo_ids = [1,2] =&amp;gt; permitted &lt;br&gt; object3.foo_ids = [1,3] =&amp;gt; not permitted &lt;br&gt; object4.foo_ids = [1,2,3] =&amp;gt; not permitted &lt;br&gt; What sort of key should I use for write permission rules ? is_in ? contains &lt;br&gt; ? intersects_with ? a new one ?
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/4f7bf37f7c895192</guid>
  <author>
  jerome.lefeu...@gmail.com
  (Jerome Lefeuvre)
  </author>
  <pubDate>Fri, 16 Nov 2012 11:04:10 UT
</pubDate>
  </item>
  <item>
  <title>integration with Hobo permissions</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/efdd8743ec3fc95d/c2975cd5cf082689?show_docid=c2975cd5cf082689</link>
  <description>
  Has anyone integrated with the Hobo library permission system? If so, can &lt;br&gt; you share your approach? If not, any ideas if these two libraries are &lt;br&gt; compatible? &lt;br&gt; I currently use authlogic for basic user authentication but want to use the &lt;br&gt; Hobo authentication with the declarative_authorization in models and
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/efdd8743ec3fc95d</guid>
  <author>
  dev...@galaxygaming.com
  (Dan)
  </author>
  <pubDate>Tue, 30 Oct 2012 17:32:26 UT
</pubDate>
  </item>
  <item>
  <title>Javascript permitted_to?</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/be8b7f4d8446007e/29a002e3c2f40b52?show_docid=29a002e3c2f40b52</link>
  <description>
  I use declarative_authorization as the last word on permissions &lt;br&gt; server-side, but I&#39;d like to be able to display my UI on the frontend with &lt;br&gt; the same knowledge found via permitted_to? . In short, I&#39;d like a JS &lt;br&gt; version of permitted_to? Is there such a thing, or is there an easy way to &lt;br&gt; dump all the available contexts and privileges of current_user?
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/be8b7f4d8446007e</guid>
  <author>
  cthie...@gmail.com
  (Chris)
  </author>
  <pubDate>Fri, 28 Sep 2012 21:39:53 UT
</pubDate>
  </item>
  <item>
  <title>Data-specific permissions</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/d1c9bc0ddee41f91/41dda149c639c346?show_docid=41dda149c639c346</link>
  <description>
  I have an application to manage the various permissions of people and &lt;br&gt; groups. Different people and groups have different subordinates that they &lt;br&gt; can assign. &lt;br&gt; I&#39;m using declarative_authorization and I&#39;m curious if it has a feature for &lt;br&gt; the following problem, or if the security-conscious folks here have a
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/d1c9bc0ddee41f91</guid>
  <author>
  cthie...@gmail.com
  (Chris)
  </author>
  <pubDate>Fri, 21 Sep 2012 22:30:11 UT
</pubDate>
  </item>
  <item>
  <title>permissions on has_many relationships</title>
  <link>http://groups.google.com/group/declarative_authorization/browse_thread/thread/71c0302abb74d1ad/22e095c6096d2ab4?show_docid=22e095c6096d2ab4</link>
  <description>
  Given this these models &lt;br&gt; class Developer &amp;lt; ActiveRecord::Base &lt;br&gt; has_many :games &lt;br&gt; end &lt;br&gt; class Game &amp;lt; ActiveRecord::Base &lt;br&gt; end &lt;br&gt; I&#39;m trying to grant permission to read a developer IF that user can read &lt;br&gt; any of the developers games. &lt;br&gt; something like &lt;br&gt; has_permission_on :developers, :to =&amp;gt; :read do &lt;br&gt; if_permitted_to :read, :games
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/declarative_authorization/browse_thread/thread/71c0302abb74d1ad</guid>
  <author>
  ur...@outoforder.cc
  (Edward Rudd)
  </author>
  <pubDate>Sat, 01 Sep 2012 02:28:30 UT
</pubDate>
  </item>
  </channel>
</rss>
