Set record as readonly when group is readonly
This commit is contained in:
@@ -1374,6 +1374,7 @@
|
||||
return (this.deleted ||
|
||||
this.removed ||
|
||||
this.exception ||
|
||||
this.group.readonly ||
|
||||
!this._write);
|
||||
},
|
||||
get deletable() {
|
||||
|
||||
@@ -248,6 +248,7 @@ class Record:
|
||||
return (self.deleted
|
||||
or self.removed
|
||||
or self.exception
|
||||
or self.group.readonly
|
||||
or not self._write)
|
||||
|
||||
readonly = property(get_readonly)
|
||||
|
||||
Reference in New Issue
Block a user