Link to home
Start Free TrialLog in
Avatar of grpfinance
grpfinance

asked on

Data View Web part gives error when not users don't have access to all sources

Hello there
I am trying to create a calendar in Sharepoint which displays all calendar items from few sites in one collection and  managed to display them using DataView Web Part. The problem is that when people don't have access permission to all of the source sites they get the web part displayed with the following text "Access denied. You do not have permission to perform this action or access this resource". What I would like them to see instead, is only the calendar items to the sites which  they have access to. Am I using the right web part - i've tried content query too, but no success.
Any help will be appreciated. Thanks
ASKER CERTIFIED SOLUTION
Avatar of 66866
66866
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of grpfinance
grpfinance

ASKER

I understand the permissions although the problem is that I want only two users to be able to see the calendar items from two sites and the rest of them to see only the one site calendar items. Even if I give the two users permissions to both sites, the web part will still give error to the rest of the users.

I need it to work similar to the navigation - if you have access to a site you can see it, if you don;t have access you can't see the site in your navigation, i.e Everyone can see the calendar items to the sites which they have access to.
Any update or help on this will be appreciated. Thanks
sorry, been travelling, let me get back to you regarding this.
66866 any update?
hi grpfinance,
as long as you are bringing data from different sources to the same dataview webpart, it will show the access denied message if the two lists have different permissions. the reason being, the dataview webpart is more of a client based webpart. The data is initially rendered and then the permissions are applied. The problem is if the list itself is not accessible, the DVWP throws an error which comes as what you are experiencing.
Any other ways of achieveing this?
Instead of modifying the permissions at the list level, what happens if you keep the permission uniform at the list level however modify the permissions at the item level. Have you tried that?