Peter Speltz wrote:
Had a thought about actions that don't have a model class . Currrently
this does not handle them the docs say.  However  I bet it could .  It
might need some tweaks of the sql.  But really no model class is  a
value for model_class.  It could be represented by an empty string or
NULL in the permissions table.  Ill try it sometime.

Hi Peter,

I'm not sure why you'd want this? If you do need it, you could just pass an empty string as the second (entity) argument to authorize(). Or better yet some other string - 'no_model', say. Empty strings and NULL values tend to be error prone and generate special cases in code, IMHO :)

Cheers, Dave



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to