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
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

sirkitree - August 31, 2009 - 20:18

Check out the access setting within Views.

#2

DLZJ - September 1, 2009 - 14:34

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

rkahlert - September 9, 2009 - 12:28

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

Scott Reynolds - September 9, 2009 - 15:04
Title:How to remove friend tab?» Views Access Plugin
Category:support request» feature request

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

sirkitree - September 14, 2009 - 18:20
Component:User interface» Flag friend access

changing component category

#6

sirkitree - November 4, 2009 - 17:42
Assigned to:DLZJ» Anonymous
Status:active» won't fix

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

Scott Reynolds - November 4, 2009 - 18:04
Version:6.x-1.0-beta5» 6.x-1.x-dev
Assigned to:Anonymous» Scott Reynolds
Status:won't fix» active

Reopening as this is a total no brainer. And its so simple.

 
 

Drupal is a registered trademark of Dries Buytaert.