Plugin Developer Discussion

Discussion for FogBugz Plugin developers

CanSeeCases returns false

I have a test installation where I am generating custom reports of case activity.  I am grouping them by user, so naturally, the Person::CanSeeCases property was an ideal test to see if I should display that user or not.  However, it is always returning false, even though I have verified that the user in question can see the cases in the list.  Am I misunderstanding the purpose of this property?
Shawn Bradley Send private email
Friday, September 4, 2009
Hmm, no that sounds like a correct application for it, but it's possible that the logic is wrong when querying it for someone other than the current user.  I'll take a look.

In the meantime, you're most likely okay just checking person.PermissionLevel >= PermissionLevel.Normal. 

The only edge case that CanSeeCases catches is where permissions are set up so that a normal user can't read ANY projects, which is pretty rare.
David Fullerton Send private email
Friday, September 4, 2009

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz