[Catalyst] Restricting access to the model
Hartmaier Alexander
Alexander.Hartmaier at t-systems.at
Mon Jul 3 17:08:03 CEST 2006
I have a method in my ResultSet class which takes an arrayref of ldap-dn's (the one of the logged-in user plus all dn's of all members of the groups the user is member of = co-workers) and use that to build a dbic search.
Whenever I need to filter I just have to do ->allowed_search($arrarref)->search({what_you_like_to_filter_for).
Search on resultset rocks!
-Alex
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
More information about the Catalyst
mailing list