Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Possible bug in CArea.Commit?

I'm getting an unexpected permissions error when I create a new area inside of a 'ProjectCommitAfter' method.  I am logged in as an admin, and am able to manually create the area.  However if I do the following in my plugin, I get a FogBugzPermissionsException that says the current user does not have write permissions:

var addArea = api.Area.NewArea();
addArea.sArea = "Test";
addArea.ixProject = project.ixProject;
addArea.Commit();       

I set IgnorePermissions to true and ixPersonOwner to -1, and it worked.  Not sure which made the difference, but thought I'd pass along...
Daniel Send private email
Saturday, July 11, 2009
 
 
Sounds like a bug.  I've opened a case to look into it.
David Fullerton Send private email
Monday, July 13, 2009
 
 

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

Other recent topics Other recent topics
 
Powered by FogBugz