Authority is an authorization library for CodeIgniter 2+ and PHPActiveRecord
This library is inspired by, and largely based off, Ryan Bates' CanCan gem
for Ruby on Rails. It is not a 1:1 port, but the essentials are available.
Please check out his work at http://github.com/ryanb/cancan/