Displaying 12 results from an estimated 12 matches for "acl_system2".
Did you mean:
acl_system
2006 Aug 05
2
acl_system2 undefined method `access_control''
I''ve installed acts_as_authenticated and have that working like a charm
and now would like to add the acl_system2 plugin so I can do some role
based authorization stuff.
I went ahead and installed the plugin like this:
>ruby script\plugin source http://opensvn.csie.org/ezra/rails/plugins/dev/acl_system2
Then I installed the lib and test
>ruby script\plugin install lib
>ruby script\plugin install te...
2007 Aug 11
2
Rspec and acl_system2 plugin
Hello,
I''m trying to spec a Rails application using the couple
restful_authentication/acl_system2 plugins.
In my admin layout, I put the following code :
<% restrict_to "admin" do -%>
<ul id="admin-tabs">
<li> /users Users management </li>
</ul>
<% end -%>
Then in my spec file ''spec/views/layout/admin.rhtml_spec.rb''...
2006 May 10
0
Ezra''s acl_system2 and flash not getting populated in functional tests
Hi all,
I am using the LoginGenerator and Ezra''s acl_system2 to protect
certain actions in my controllers. I have written some functional
tests to check for correct handling of redirects, flashes, etc. The
flashes however only get populated on the first get action in any
given test. Here is what I have so far:
In the controller:
class PageControlle...
2006 Mar 22
4
Problem with ACL plugin system
Don''t know if anyone else has experienced this but I''m having a problem
with the access_denied method in Ezra''s ACL access control plugin. It''s
working fine (in conjunction with acts_as_authenticated) until it comes
across a user it denies access to, in which case it throws the following
error:
NoMethodError in Admin#index
protected method
2006 Aug 01
2
HOWTO? security based on data values
...to configure this ''data based security'' ? A
simple way which causes the model to restrict the records it throws out
in all cases to an appropriate subset?
I looked at security frameworks like acts_as_authenticated (which
handles only authentication and hence not relevant), and acl_system2
(which is RBAC, and not neccessarily data based).
Looking forward to some help!
-Ashish
--
Posted via http://www.ruby-forum.com/.
2006 May 02
3
Writing tests for plugins
I''ve been googling around trying to find some tips on creating tests for
plugins. Am I correct in assuming that I''d have to have the tests as
part of a rails app in order to test the plugin? I''d like to find a way
to do standalone tests for the plugin.
--
Posted via http://www.ruby-forum.com/.
2007 Jul 06
3
stubbing helper methods for View specs
...d
this works for views / helpers like this:
it "should show bla" do
render "/layouts/thetool"
response.should have_tag("p", "bla")
end
and the view (haml to make things more interesting)
- if logged_in?
%p bla
Now I also use Ezra acl_system2 plugin which defines a "restrict_to"
method that queries some roles. When I stub the methods above and run
specs, I get the following error:
ActionView::TemplateError in ''/users/show should display the
information of the user''
undefined local variable or method `c...
2006 Sep 02
1
html not rendering apache/mongrel
We are running Apache and Mongrel on RHEL4 and have been experiencing
some interesting behaivor. Sometimes when someone logs into our
application (it uses the acts_as_authencticaed and acl_system2) the
following happens. Instead of the browser rendering the html and
displaying all the form elements corretly as you would expect, it simple
spews back the output without attempting to render. So you get something
like this:
HTTP/1.1 0 Content-Length: 7636
Connection: close
Date: Sat, 02 Sep...
2007 Aug 23
0
how to manage group permissions?
Hey all,
In my app users can create groups and the group creator can "kick" or
"ban" users. I want the creator to be able to grant other members of
the group to kick and ban.
This is how I want to do it:
I''m usgin acl_system2 and the creator can grant kick and ban
permissions to group members by creating roles "kick_group_id" or
"ban_group_id" for those users and then in the view I do:
<% restrict_to "(creator | kick_#{@group.id}) do %>
<%= link_to "kick this user out of the grou...
2006 Jun 02
2
State of the Art in Login?
Hi folks,
I''ve got an older project I''ve used LoginGenerator for. It works pretty
well, but lacks password resetting, etc.
Now I''ve got a new project for a client that''s going to need login
capabilities as well. I''ve been looking at the Salted Login Generator
and the Login Engine, and have taken quick stabs at running through the
installation
2006 Jul 25
2
Authentication design/ideas
Hi all,
I''m using acts_as_authenticated for the front end facing part of my
site. I have a model called Customer. I now want to protect the admin
sides of things. I am thinking of using Ezra''s acl plugin
(http://opensvn.csie.org/ezra/rails/plugins/dev/acl_system2/README)
for this. My only problem is that I don''t want the model for admin
users to be called Customer, I''d rather it be called User or something
(call me pedantic :)
So, I could rename my Customer model to User and implement the above
plugin which will give me the authorization...
2007 Jul 24
6
Mocking Access Control
I''m trying to jump on the TDD/BDD bandwagon, but am having trouble
understanding how i should mock my user. The user has a habtm
relationship to a roles model (acl_system2 plugin), but I''m not sure
how to tell rspec about a model.
My code:
describe UsersController do
integrate_views
before(:each) do
@user = mock_model(User)
@user.stub!(:new_record?).and_return(false)
@user.stub!(:id).and_return(666)
@user.stub!(:email).and_return("...