Branch that created the record is the only branch that should be able to edit the record

Branch that created the record is the only branch that should be able to edit the record

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


superkuton posted on Wednesday, December 23, 2009

My app is serving several branches. I wanted to implement the business rule that the branch that created the record should be the only branch that will be able to edit the record, other branches will only be able to view the records.

How will I implement this in the database and in the business layer?

Thanks.

ajj3085 replied on Wednesday, December 23, 2009

Don't know if implementing in the database is a good idea, because this is a business rule.

On the BO, you can override CanWriteProperty to check the branch id of the current user and compare it to the branch id of the record.

Copyright (c) Marimer LLC