==============================
This example is related to the old security system. To learn how to implement this functionality in the new security system, refer to the How to filter records by the current user (the object owner feature) ticket.
==============================
This is the continuation of the E919 example. Here, I've used Many-to-Many relation between users and their resources, and filtered resources by the associated users (owners), if the current user doesn't have the Administrators role.