Displaying 16 results from an estimated 16 matches for "acl_system".
2006 Feb 21
0
acl_system plugin first look
...o after the login_required before filter. This
plugin is for authorization and assumes that the user is already
logged in.
Here is a link to the announcement on my blog where I go into more
detail about how to use this in your applications:
http://brainspl.at/articles/2006/02/20/new-plugin-acl_system
The main goal of this implementation is to be lightweight as as non
imposing as possible. It does what it does and gets out of your way.
Right now it only works for protecting your controller actions. I am
working on the next version that has a similar protection scheme for
protecting spe...
2006 Jun 18
0
login generator
hey all,
i''m having some pretty aggravating moments with the begining of the
installation of the acl_system(..permissions, etc) provided on
http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem
...for some apparent(or non-apparent, to be exact) reason, my
application.rb won''t read the
require_dependency "acl_system"
line in the app. controller! i checked the lib f...
2006 Jul 16
9
acl_system help is needed
i found Ezra''s acl_system plugin yesterday and i am trying to figure it
out.
based on the simple instructions on the site, it does exactly what i
need but i''m getting some errors when i try to use it:
NoMethodError in UsersController#index
You have a nil object when you didn''t expect it!
The error oc...
2006 Feb 23
13
Check if a saved user''s name is admin
Hi all,
I have a question about this method in my User model:
# Returns true for the (saved) user called "admin"
def is_the_administrator
true if save and name == "admin"
end
The method returns true if the user''s name is admin. However, I only want to
return true if the state of the object is "saved", so I call the save method
first.
I''m
2006 Mar 04
4
authorization framework?
There are a number of good authentication frameworks for rails - has anyone
developed a generic authorization framework?
I''m thinking of something that included the concept of roles, mapped roles
to both actions and users and could be used to wrap actions before their
invocation.
Extra good would be some way to check data permissions (as in, "yes you can
perform the ''Edit
2006 Mar 06
20
How painful is the 1.0 -> 1.1 upgrade going to be?
Does anyone have a sense for how painful the 1.0 -> 1.1 upgrade is
going to be for existing apps? I''m finishing up my first real RoR
application with Rails 1.0. I can live with it staying at that level,
but I really want to use the has_many :through attribute to clean up
some of my code.
I''m not particularly interested in edge Rails, mainly because the
documentation for
2006 Mar 22
4
Problem with ACL plugin system
...case it throws the following
error:
NoMethodError in Admin#index
protected method `access_denied'' called for
#<AdminController:0x408fc9a8>
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
./script/../config/../vendor/plugins/acl_system/lib/caboose/access_control.rb:24:in
`access_control''
The prob seems to be in the following code block:
23 if c.respond_to?(:access_denied)
24 c.access_denied
25 else
26 c.send(:render_text, "You have insufficient permissions
to access...
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/.
2006 Feb 27
3
Send parameter along with method in before_filter
Hello list,
I have an app that has a very simple authorization scheme. A person can have
many roles and roles can have many people.
In my app, I''d like to do
before_filter :login_required (since no role name is provided, it accepts
any users with credentials)
before_filter :login_required ("administrator") (only accepts those with
role administrator)
before_filter
2006 Feb 23
20
ActiveRbac 0.3 release - We''re now on Engines
Hi
I have just released the 0.3 revision of ActiveRecord - make sure to
get the fresh, hot packages from
https://activerbac.turingstudio.com/releases
What is ActiveRBAC?
-------------------
ActiveRBAC is a Ruby on Rails library that provides a full stack RBAC
(Role Based Authorization) system with user, group, role and
permission management. It provides models and controllers to edit
2006 Apr 24
5
New RBAC Plug-In for Rails
Hi,
I just finished writing this plug-in. I''ve been using rails for awhile
but this is my first time extracting some code and writing it as a
plug-in and I''d love to hear to some feedback. Thanks.
http://mitchellhashimoto.com/rails/role-based-access-control-plug-in-for-rails/
-Mitchell
--
Posted via http://www.ruby-forum.com/.
2006 Feb 20
6
LoginGenerator - multiple user types...
I have been looking at the LoginGenerator gem. Looks great and can be
easily modified. However in my app I have two places where people can
login, one is for in my case "employees" the other is for "users". They
are seperate tables in my database and have many different fields.
I have an admin area located at ./sysadmin/ where only "employees" can
login, they
2006 Jul 14
1
role-based conditionals
in the Rails Recipes book there is a chapter on role-based
authentication. it basically set up priviliges based on what page the
user was able to access. i went through the chapter and felt like i got
a pretty good understanding of how to do it.
now i am needing something a little more advanced though. instead of a
per page (or action) i would like to have certain sections on a page
either
2006 Apr 17
2
newbie before_filter question
I''ve successfully gotten acts_as_authenticated working. Currently the
before_filter line for my admin screen is like this:
class AdminController < ApplicationController
include AuthenticatedSystem
before_filter :login_required
Only issue I have now is that anyone logged in can access that screen.
I''d like to differentiate between a regular user and
2006 Apr 28
2
["acts_as_authenticated"] << "Role-Based Authorization Rails Recipe"
hi guys,
has anyone here implemented role based authorization from rails recipes
into acts_as_authenticated ? how''s it going?
Case:
there is ONE admin. And MANY users. Admin is the only one who can
create, edit, delete user, etc.. users also need to login, but go to
different pages. do you guys think it''s good to try rick''s
acts_as_authenticated + chad''s
2006 Feb 21
9
Rails and Windows Active Directory Authentication?
Hello All, I know there is a component for integrating LDAP with Rails but
is anyone doing any Windows Active Directory Authentication to a Rails app?
I am rebuilding a site that was constructed out of asp and I would like to
rebuild/improve it via rails. On the requirements side I will need to
communicate with Active Directory and I will be required to use MSSQL for
the database. Can anyone