The flag module provides a built-in bookmarks tab on user profile, how do i disable it or restrict the access to the owner of that particular user profile page. This is for privacy.

I think the bookmark tab comes with the code since i can't find it in the views.

Comments

quicksketch’s picture

Status: Active » Fixed

Visit admin/build/views and modify the "flag_bookmarks_tab" view.

404’s picture

I checked that views.

Let me clarified my case:

1. on user A's profile page, there's a bookmarks tab and that's provided by flag module with a pre-configured views

2. when user A visits her profile, she can see the bookmarks tab. when she clicks it, her bookmarks show up.

3. when user B visitis user A's profile, he can see the bookmarks tab. when he clicks it, bookmarks doesn't show up. because user B is not supposed, in my case, to views other user's bookmarks.

Seem to me there is no easy way to do that. My solution currently is to change the path of the views so it doesn't show up on user profile.

quicksketch’s picture

The "flag_bookmarks_tab" view is where the tab comes from. You're right that there is no built-in way to disable the tab so that users may only see the tab on their own profile pages, however you can work around the problem by using PHP code, as described in #596594: user can see other users flags by changing the URL. There is also a feature request in the Views queue for this functionality: #605142: uid argument validation: check if uid = current user.

404’s picture

I got it. Very clear and informative! Thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

wmunguiam@gmail.com’s picture

Looking for another way to Disable Bookmark tab inside /user

First, I have to consider that if "access to all view" permision is enable for authenticated users, any change on "Page" (inside Basic options) the feature Accesess: administrator (only); will not work.

So, the fastest way to "hide" bookmark is to change MENU option (located in "Options of Page") with "No menu entry". This change will remove Menu named "bookmark" in the Menu Tab.

Regards,