Set anonymous in cfgAuthor if Manager is not protected (#820)

environments/ppa-mbqj77/deployments/1
Clément Oudot 10 years ago
parent d485871354
commit d366991884
  1. 5
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/ConfParser.pm

@ -41,8 +41,9 @@ sub scanTree {
# Set cfgNum to ref cfgNum (will be changed when saving), set other
# metadatas and set a value to the key if empty
$self->newConf->{cfgNum} = $self->refConf->{cfgNum};
$self->newConf->{cfgAuthor} = $self->req->userData->{_whatToTrace};
$self->newConf->{cfgNum} = $self->refConf->{cfgNum};
$self->newConf->{cfgAuthor} = $self->req->userData->{_whatToTrace}
// "anonymous";
$self->newConf->{cfgAuthorIP} = $self->req->remote_ip;
$self->newConf->{cfgDate} = time;
$self->newConf->{key} ||=

Loading…
Cancel
Save