Here is a scenario:
First, i created two roles. Say role1 and role2. They have different permissions in stormproject module, say, role1 can edit, add, delete projects that were assigned to a certain user with role2 permissions.
Then, i created a views to display some fields which are not visible in the default "storm project list" display. For role1, who has an elevated permissions, work fine. But for role2, my target was not achieved. All, except one user under role2, can view the projects which are assigned to them only. For the rest are empty.
Can anybody tell me what i'm missing? Why there is only one user who can view his own items, where in fact he also belong in the same role and with no other special permissions or whatsoever! PLEASE HELP!
Comments
Comment #1
merlinofchaos commentedIt seems likely that whatever module you're using to restrict permissions is also restricting Views. Field permissions and node_access restrictions are respected by Views, and it doesn't get around them.
Comment #2
mohann2009 commentedthanks for your reply merlinofchaos. i know that Views are following the field permissions and node_access restrictions and i also want it that way. maybe i'm not clear on my previous post. The issue that i have is there is only one user under the same role who can get what i want. What i want is i will let the users view a customize list of projects which are assigned to them only, in the same manner as Drupal Storm is displaying it by default. I have to do this because there are some fields in drupal storm projects that are not visible by default, like the "end date" and "price".
How come only one user can get the accurate results and others are getting empty table where in fact they are under the same role permission?
Comment #3
merlinofchaos commentedI don't know -- unfortunately, I don't know anything about storm or its permission model, so I can't really answer questions about it. You should probably ask in the storm queue.
Comment #4
kfritschemohann2009 created this issue also for storm (#1365702: Customising project list display using views is not displaying the fields to role users.).
In his case, it was a fixed bug, which wasn't in the released version yet. (#1344448: "Storm project: view if project manager" and "Storm project: view if assigned to project" not valid when using Views.)
Problem solved in the other issues. I close this as duplicate now.