mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 00:43:48 +01:00
LSldapObject::submitChange(): Add security check about isNew() return
This commit is contained in:
parent
06b8fddc51
commit
a353ca5c37
1 changed files with 2 additions and 0 deletions
|
@ -634,6 +634,8 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
|||
public function submitChange($idForm) {
|
||||
$submitData=array();
|
||||
$new = $this -> isNew();
|
||||
if (!$new && $idForm == 'create')
|
||||
self :: log_fatal("submitChange($idForm): object isn't considered as new !?");
|
||||
foreach($this -> attrs as $attr) {
|
||||
if(($attr -> isUpdate())&&($attr -> isValidate())) {
|
||||
if(($attr -> name == $this -> getConfig('rdn')) && (!$new)) {
|
||||
|
|
Loading…
Reference in a new issue