Hi,
I use Transfer with my application. I have 3 tables: users,
applications and users-applications.
Every user has access to his/her application(s) but an admin user has
access to _all_ applications.
The Transfer config file contains a many-to-many relationship between
table users and
Hi Marc,
From my experience, I would say the best way to deal with your situation is
more or less as follows:
Create a getUserApplications method of some sort, with the user as an
argument.
Within that method, determine whether or not the user is an admin.
cfif admin
Call another method,
What Tom suggested is what I do if the number of objects is low. However,
if a user may have a 100 applications, you might be introducing additional
overhead to simply output a list of applications. In that case, I'd create
a different method on your decorator called listApplications() which