Do not allow the user to modify/delete objects designed for logging (change tracking, error log, information log, etc.)

SVN:trunk[440]
This commit is contained in:
Romain Quetiez
2010-06-08 09:33:14 +00:00
parent a813a1e50a
commit 4d3fbf1f79
7 changed files with 47 additions and 17 deletions

View File

@@ -76,6 +76,12 @@ abstract class DBObject
}
}
// Read-only <=> Written once (archive)
static public function IsReadOnly()
{
return false;
}
public function RegisterAsDirty()
{
// While the object may be written to the DB, it is NOT possible to reload it