I have created a view which displays a list of flagged content. I have used the Flag module to achieve this. I have named this page as Bookmarks, and the URL to this page is
http://example.com/user/%/bookmarks. User should only able to access their own flagged content.
Consider this scenario:
- User A has his flagged content in
http://example.com/user/2/bookmark(uid=2 for User A).
- This page should be accessible only by User A and the admin user.
- If User B tries to access
http://example.com/user/2/bookmark, it should return access denied.
How can I get this to work?