Simple access crontrol system
License
dmitryp/lite_access_control
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
LiteAccessControl ================= Simple access crontrol system Install ======= Example ======= Controller: class ApplicationController < ActionController::Base include LiteAccessControl before_filter :check_users_rights set_rights( :view_notifications => {:controller => "main", :actions => ["dashboard"]}, :manage_invoices => {:controller => "invoices", :actions => :all} ) protected def check_users_rights access_control(current_user) if current_user end end class User < AR def permissions [:manage_invoices, :view_notifications] end end Copyright (c) 2009 Dmitry Penkin, released under the MIT license
About
Simple access crontrol system
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published