wishlist canEditProperty

wishlist canEditProperty

Old forum URL: forums.lhotka.net/forums/t/3543.aspx


jhw posted on Saturday, September 15, 2007

My wishlist for csla.

 

I come across the situation where users are allowed to enter in information, but not edit it once the object has been saved. Since the big Enron meltdown, this is becoming standard practice here in the oilfield offices. It would be nice to have a canEditProperty that works like the canWrite and CanReady properties so it would allow us the granularity of the methods, without having to deny a user from editing any of the object when only some fields would need to be authorized for editing.

 

 

 

Heath

xal replied on Saturday, September 15, 2007

You can override CanWriteProperty and check for IsNew right there.

Andrés

jhw replied on Sunday, September 16, 2007

Will this allow for:

Some users can only write to it while new, but not edit it.

Other users can both write to it while new, and edit it.

I have to be able to allow for these 2 different types of write access.

I'm not saying that the property can never be edited, but that only some people can edit it.

 

Heath

triplea replied on Sunday, September 16, 2007

Well that would be a combination of checking the state of your object plus some custom security check. Both can be done in your override of CanWriteProperty. Along with any other check you wish to add...

Copyright (c) Marimer LLC