Skip to content
Snippets Groups Projects
Commit ae81ed48 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

short-circuit stash for those variables

parent d1679059
Branches
Tags
No related merge requests found
...@@ -14,17 +14,14 @@ sub run { ...@@ -14,17 +14,14 @@ sub run {
my $config = $app->config(); my $config = $app->config();
my $log = $app->log(); my $log = $app->log();
$self->init_l10n(); my $l10n = $self->init_l10n();
$self->init_user(); my $user = $self->init_user();
$self->init_db(); my $db = $self->init_db();
if ($config->{app}->{login_url}) { if ($config->{app}->{login_url}) {
return if !$self->check_authentication(); return if !$self->check_authentication();
} }
my $user = $self->stash('user');
my $db = $self->stash('db');
my $sps = AccessCheck::Data::Entity->get_entities( my $sps = AccessCheck::Data::Entity->get_entities(
db => $db, db => $db,
query => [ query => [
......
...@@ -12,9 +12,9 @@ sub run { ...@@ -12,9 +12,9 @@ sub run {
my $config = $app->config(); my $config = $app->config();
my $log = $app->log(); my $log = $app->log();
$self->init_l10n(); my $l10n = $self->init_l10n();
$self->init_user(); my $user = $self->init_user();
$self->init_db(); my $db = $self->init_db();
if ($config->{app}->{login_url}) { if ($config->{app}->{login_url}) {
return if !$self->check_authentication(); return if !$self->check_authentication();
......
...@@ -20,9 +20,9 @@ sub run { ...@@ -20,9 +20,9 @@ sub run {
my $config = $app->config(); my $config = $app->config();
my $log = $app->log(); my $log = $app->log();
$self->init_l10n(); my $l10n = $self->init_l10n();
$self->init_user(); my $user = $self->init_user();
$self->init_db(); my $db = $self->init_db();
if ($config->{app}->{login_url}) { if ($config->{app}->{login_url}) {
return if !$self->check_authentication(); return if !$self->check_authentication();
...@@ -30,9 +30,6 @@ sub run { ...@@ -30,9 +30,6 @@ sub run {
my $entityid = $self->param('entityid'); my $entityid = $self->param('entityid');
my $email = $self->param('email'); my $email = $self->param('email');
my $l10n = $self->stash('l10n');
my $user = $self->stash('user');
my $db = $self->stash('db');
my $sp = $self->get_sp(entityid => $entityid); my $sp = $self->get_sp(entityid => $entityid);
return if !$sp; return if !$sp;
......
...@@ -20,9 +20,9 @@ sub run { ...@@ -20,9 +20,9 @@ sub run {
my $config = $app->config(); my $config = $app->config();
my $log = $app->log(); my $log = $app->log();
$self->init_l10n(); my $l10n = $self->init_l10n();
$self->init_user(); my $user = $self->init_user();
$self->init_db(); my $db = $self->init_db();
if ($config->{app}->{login_url}) { if ($config->{app}->{login_url}) {
return if !$self->check_authentication(); return if !$self->check_authentication();
...@@ -33,8 +33,6 @@ sub run { ...@@ -33,8 +33,6 @@ sub run {
my $token = $self->param('token'); my $token = $self->param('token');
my $validity = $self->param('validity'); my $validity = $self->param('validity');
my $profiles = $self->every_param('profiles'); my $profiles = $self->every_param('profiles');
my $l10n = $self->stash('l10n');
my $db = $self->stash('db');
my $sp = $self->get_sp(entityid => $entityid); my $sp = $self->get_sp(entityid => $entityid);
return if !$sp; return if !$sp;
......
...@@ -19,9 +19,9 @@ sub run { ...@@ -19,9 +19,9 @@ sub run {
my $config = $app->config(); my $config = $app->config();
my $log = $app->log(); my $log = $app->log();
$self->init_l10n(); my $l10n = $self->init_l10n();
$self->init_user(); my $user = $self->init_user();
$self->init_db(); my $db = $self->init_db();
if ($config->{app}->{login_url}) { if ($config->{app}->{login_url}) {
return if !$self->check_authentication(); return if !$self->check_authentication();
...@@ -30,7 +30,6 @@ sub run { ...@@ -30,7 +30,6 @@ sub run {
my $entityid = $self->param('entityid'); my $entityid = $self->param('entityid');
my $token = $self->param('token'); my $token = $self->param('token');
my $key = $self->param('key'); my $key = $self->param('key');
my $db = $self->stash('db');
return if !$self->check_token(token => $token, entityid => $entityid); return if !$self->check_token(token => $token, entityid => $entityid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment