Hi all
I'm looking into making records from a table available only for specified
users.
Example schema:
propel:
organization:
_attributes: { phpName: Organization }
id:
user:
_attributes: { phpName: User }
id:
organization_id:
name
article:
_attributes: { phpName: Article}
organization_id:
article_content: longvarchar
so that a user can only access (read, list, edit etc) articles that belong
to his organization.
I guess this is a quite common request, but I still haven't found any easy
way to to it. I see I can solve it by overriding some methods in Article and
ArticlePeer and make some security checks back in action.class.php, but I
guess there is an easier way to to it that would reduce the risk of creating
a maintenance nightmare. (Yes, the case above is just a greatly simplified
case.)
Does anybody here know the right way to solve it?
Regards,
Erik I
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---