News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Debuggable Blog:
Simple Data Access Control
August 25, 2008 @ 07:56:50

In a new post to the Debuggable blog Felix Geisendorfer illustrates a simple access rights system that can be plugged into any CakePHP application you might be developing.

If your application is like most, then you have some basic permission requirements for your data. A simple scenario is the following. Blog posts can only be edited by their owners and administrators. Same goes for viewing unpublished blog posts.

His example modifies the typical "posts" controller to add in a new model (User) with a permission check (can) and a model that implements it into the PostsController to ensure that a user can view any given posting.

0 comments voice your opinion now!
post access control user permission model cakephp framework


blog comments powered by Disqus

Similar Posts

Site News: Popular Posts for the Week of 10.12.2007

Job Posting: Kodak Graphic Communications Group Seeks PHP Application Developer (Stamford, CT)

Matt Curry's Blog: Did You Guys Know About The CakePHP DebugKit?

Chris Hartjes' Blog: 10 Days Later - Early Impressions of CakePHP vs. CodeIgniter

7PHP.com: Slim PHP Micro Framework Through The Lens Of Jeremy Kendall


Community Events





Don't see your event here?
Let us know!


release tips unittest series update introduction community laravel interview podcast zendserver library symfony language framework package opinion deployment install api

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework