CanCanCan is an authorization library for Ruby and Ruby on Rails which restricts what resources a given user is allowed to access. All permissions can be defined in one or multiple ability files and not duplicated across controllers, views, and database queries, keeping your permissions logic in one place for easy maintenance and testing. Authorizations library that allows you to define the rules to access different objects, and provides helpers to check for those permissions. Rails helpers to simplify the code in Rails Controllers by performing the loading and checking of permissions of models automatically and reduce duplicated code. The current user's permissions can then be checked using the can? and cannot? methods in views and controllers. One of the key features of CanCanCan, compared to other authorization libraries, is the possibility to retrieve all the objects that the user is authorized to access.

Features

  • CanCanCan uses appraisals to test the code base against multiple versions of Rails
  • Retrieve all the objects that the user is authorized to access
  • User permissions are defined in an Ability class
  • Define the rules to access different objects
  • Simplify the code in Rails Controllers
  • Reduce duplicated code

Project Samples

Project Activity

See All Activity >

Categories

Security

License

MIT License

Follow CanCanCan

CanCanCan Web Site

Other Useful Business Software
Discover the power of eDiscovery for law firms. Icon
Discover the power of eDiscovery for law firms.

Streamline your legal processes and ensure compliance with our eDiscovery company.

DWR eDiscovery allows legal professionals to process, analyze, review, and produce documents that are relevant to litigation and other legal disclosure obligations. Our tools allow easy ingestion and analysis of client and opposing party documents using a comprehensive set of document review features including AI search, keyword search, keyword highlighting, metadata filtering, marking documents, privilege log management, redactions, and a range of analysis tools to help users best understand their document corpus.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CanCanCan!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Security Software

Registered

2021-11-05