Closed (fixed)
Project:
Facebook-style Statuses (Microblog)
Version:
6.x-2.x-dev
Component:
Code - Functionality
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2009 at 16:26 UTC
Updated:
13 Jan 2010 at 17:10 UTC
Comments
Comment #1
carlmcdade commentedHmm,
Found a list of rights management in views admin. The problem is this does not allow for on the fly comparisons to account uid and user uid. Once you have set this permission variable the user gains constant static access to the view. Does anyone have a solution to this? It seems like a common problem with views integration.
Comment #2
icecreamyou commentedTo change the permissions for a view, edit the view and click on the existing permission next to the heading "Access:" under the "Basic settings" section. Permissions are defined in hook_perm() in the .module file. If you want permissions dependent on, say, an argument--like you want to check that the current user (user 12) is a friend of the user whose statuses appear at user/17/status--then you can click on the argument in question ("User: Name" in this case) and edit the validation code in PHP.
Your question is not directly related to FBSS, but rather to Views and module construction in general. In the future, please direct this kind of question to the relevant support queues.
Comment #3
carlmcdade commentedSorry about that. But in asking questions about views access I was referred to using views within nodes and then given advice on finding out how the view was implemented within FBSS. Though not a direct topic it goes to not knowing or finding how access is implemented in FBSS views. You answered my question perfectly.
Comment #4
icecreamyou commentedHappy to help.