projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git]
/
SL
/
DB
/
AuthUser.pm
diff --git
a/SL/DB/AuthUser.pm
b/SL/DB/AuthUser.pm
index
0d22be9
..
2a15449
100644
(file)
--- a/
SL/DB/AuthUser.pm
+++ b/
SL/DB/AuthUser.pm
@@
-5,6
+5,8
@@
package SL::DB::AuthUser;
use strict;
use strict;
+use List::Util qw(first);
+
use SL::DB::MetaSetup::AuthUser;
use SL::DB::AuthUserGroup;
use SL::DB::MetaSetup::AuthUser;
use SL::DB::AuthUserGroup;
@@
-29,4
+31,11
@@
__PACKAGE__->meta->add_relationship(
__PACKAGE__->meta->initialize;
__PACKAGE__->meta->initialize;
+sub get_config_value {
+ my ($self, $key) = @_;
+
+ my $cfg = first { $_->cfg_key eq $key } @{ $self->configs };
+ return $cfg ? $cfg->cfg_value : undef;
+}
+
1;
1;