Closed (fixed)
Project:
Flag
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2010 at 14:41 UTC
Updated:
12 May 2012 at 16:43 UTC
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
Comment #1
quicksketchVisit admin/build/views and modify the "flag_bookmarks_tab" view.
Comment #2
404 commentedI 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.
Comment #3
quicksketchThe "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.
Comment #4
404 commentedI got it. Very clear and informative! Thank you!
Comment #6
wmunguiam@gmail.com commentedLooking 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,