Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
a2724b2d
Commit
a2724b2d
authored
Jan 05, 2019
by
Benjamin Rokseth
Browse files
koha: C4 userenv only send session data
parent
22f5ccff
Changes
2
Hide whitespace changes
Inline
Side-by-side
koha/Deichman/Auth.pm
View file @
a2724b2d
...
...
@@ -93,7 +93,6 @@ sub Auth {
C4::Context::
set_shelves_userenv
(
"
pub
",
$session
->
get
("
pubshelves
")
);
C4::Context::
set_shelves_userenv
(
"
tot
",
$session
->
get
("
totshelves
")
);
}
warn
Dumper
(
$session
);
# Should Auth return something?
return
;
}
...
...
koha/Deichman/Plack/Middleware/Session.pm
View file @
a2724b2d
...
...
@@ -121,10 +121,7 @@ sub call {
return
"
failed
";
};
local
*
{
C4::Auth::
checkauth
}
=
sub
{
$session
};
local
*
{
C4::Context::
userenv
}
=
sub
{
my
$auth
=
$session
->
param
("
auth
");
return
$auth
->
{
user
};
};
local
*
{
C4::Context::
userenv
}
=
sub
{
$session
->
{
data
}
};
# TODO override all context methods?
#local *{C4::Context::set_userenv} = sub { };
#local *{C4::Context::_new_userenv} = sub { };
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment