diff --git a/code/MemberTableField.php b/code/MemberTableField.php index b6109568..aea7b801 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -177,6 +177,8 @@ class MemberTableField extends ComplexTableField { $className, sprintf('"%s" = \'%s\'', $identifierField, $data[$identifierField]) ); + + if($record && !$record->canEdit()) return $this->httpError('401'); } // Fall back to creating a new record