Commit ba7dab03 authored by Maxime Besson's avatar Maxime Besson
Browse files

Allow setSecurity to be used in Combination (#2009)

parent 653533b2
...@@ -68,6 +68,7 @@ sub setSecurity { ...@@ -68,6 +68,7 @@ sub setSecurity {
last; last;
} }
} }
PE_OK;
} }
1; 1;
...@@ -237,7 +237,8 @@ sub name { ...@@ -237,7 +237,8 @@ sub name {
sub setSecurity { sub setSecurity {
my ( $self, $req ) = @_; my ( $self, $req ) = @_;
return $self->try(0, 'setSecurity', $req); $self->try(0, 'setSecurity', $req);
PE_OK;
} }
package Lemonldap::NG::Portal::Lib::Combination::UserLogger; package Lemonldap::NG::Portal::Lib::Combination::UserLogger;
......
...@@ -176,6 +176,8 @@ sub setSecurity { ...@@ -176,6 +176,8 @@ sub setSecurity {
elsif ( $self->ottRule->( $req, {} ) ) { elsif ( $self->ottRule->( $req, {} ) ) {
$self->ott->setToken($req); $self->ott->setToken($req);
} }
PE_OK;
} }
1; 1;
...@@ -589,7 +589,7 @@ sub setSecurity { ...@@ -589,7 +589,7 @@ sub setSecurity {
elsif ( $self->ottRule->( $req, {} ) ) { elsif ( $self->ottRule->( $req, {} ) ) {
$self->ott->setToken($req); $self->ott->setToken($req);
} }
return 1; return PE_OK;
} }
sub display { sub display {
......
...@@ -520,7 +520,7 @@ sub setSecurity { ...@@ -520,7 +520,7 @@ sub setSecurity {
elsif ( $self->ottRule->( $req, {} ) ) { elsif ( $self->ottRule->( $req, {} ) ) {
$self->ott->setToken($req); $self->ott->setToken($req);
} }
return 1; return PE_OK;
} }
sub display { sub display {
......
...@@ -536,6 +536,7 @@ sub setSecurity { ...@@ -536,6 +536,7 @@ sub setSecurity {
elsif ( $self->ottRule->( $req, {} ) ) { elsif ( $self->ottRule->( $req, {} ) ) {
$self->ott->setToken($req); $self->ott->setToken($req);
} }
PE_OK;
} }
1; 1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment