Skip to Content
0
Former Member
Jan 21, 2008 at 05:05 PM

Test for 'view-on-demand' rights for Crystal Report

18 Views

Post Author: craibuc

CA Forum: .NET

What is the most efficient way to test for inherited or explicitly-granted 'view-on-demand' right for the current user?

I realize that that I can test for CrystalDecisions.Enterprise.CeRole.ceRoleViewOnDemand using:

Report.SecurityInfo.GetAnyPrincipal(Identity.EnterpriseSession.UserInfo.UserId).Role

But I will need to test the specific right ('Refresh the report's data', #131131, I think) if the Role is ceRoleAdvanced. Perhaps it will be more efficient just to test for the specific Right.

Thanks in advance.