projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mandantenkonfiguration -> Lager Kosmetik und genauerer Hinweistext
[kivitendo-erp.git]
/
SL
/
SessionFile.pm
diff --git
a/SL/SessionFile.pm
b/SL/SessionFile.pm
index
f4c509c
..
08f905b
100644
(file)
--- a/
SL/SessionFile.pm
+++ b/
SL/SessionFile.pm
@@
-13,6
+13,7
@@
use POSIX qw(strftime);
use Rose::Object::MakeMethods::Generic
(
scalar => [ qw(fh file_name) ],
use Rose::Object::MakeMethods::Generic
(
scalar => [ qw(fh file_name) ],
+ 'scalar --get_set_init' => [ qw(session_id) ],
);
sub new {
);
sub new {
@@
-64,18
+65,22
@@
sub displayable_mtime {
}
sub get_path {
}
sub get_path {
- die "No session ID" unless $
::auth->get_
session_id;
- return "users/session_files/" . $
::auth->get_
session_id;
+ die "No session ID" unless $
_[0]->
session_id;
+ return "users/session_files/" . $
_[0]->
session_id;
}
sub prepare_path {
}
sub prepare_path {
- my $path =
get_path()
;
+ my $path =
$_[0]->get_path
;
return $path if -d $path;
mkpath $path;
die "Creating ${path} failed" unless -d $path;
return $path;
}
return $path if -d $path;
mkpath $path;
die "Creating ${path} failed" unless -d $path;
return $path;
}
+sub init_session_id {
+ $::auth->get_session_id;
+}
+
sub destroy_session {
my ($class, $session_id) = @_;
sub destroy_session {
my ($class, $session_id) = @_;