Views Access Plugin
DLZJ - August 31, 2009 - 05:53
| Project: | Flag Friend |
| Version: | 6.x-1.x-dev |
| Component: | Flag friend access |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Scott Reynolds |
| Status: | active |
Jump to:
Description
Hi,
Greetings,
I have a problem while using Flag Friend. For instance, user A could view all his friends in "My Account" tab > "Friends" tab. However, user A could also access to user B' profile (because I have allowed them to access other user profiles) and click on user B's "friends" tab to view his friend list.
How could I make the tab invisible? I would like a particular user to view his own friend list but not seeing someone else's friend list.
Is that possible? Could you provide some guidelines for me?
Thank you.

#1
Check out the access setting within Views.
#2
Hi,
I have checked out the access setting. I have tried different settings over and over again but I still not manage to get the outcome that I want. There are lots of choice of settings for permission. Which one shall I pick?
Sorry to interrupt you again.
Your advice is much appreciated.
Thank you.
#3
Yeah, Views access settings has a lack of features. I simply added some PHP-code to to the tempalte of the view, which outputs s.th. like "sorry, you are not allowed to see this". Maybe there is a module to use PHP for views access?
#4
So as a feature, it would be good to have an Access plugin. This would be useful for a variety of other Views as well (say you only want Friends to be able to see a users content)
Luckily, Access plugins are trivial to write.
#5
changing component category
#6
I'm not likely to write this as writing Views code still makes me feel like a small child left out in the rain...
Please reopen if you plan to work on this.
#7
Reopening as this is a total no brainer. And its so simple.