projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dbconnect_noauto entfernt
[kivitendo-erp.git]
/
SL
/
DB
/
AuthGroup.pm
diff --git
a/SL/DB/AuthGroup.pm
b/SL/DB/AuthGroup.pm
index
23dabb5
..
0331786
100644
(file)
--- a/
SL/DB/AuthGroup.pm
+++ b/
SL/DB/AuthGroup.pm
@@
-48,11
+48,11
@@
sub rights_map {
if (@_) {
my %new_rights = ref($_[0]) eq 'HASH' ? %{ $_[0] } : @_;
if (@_) {
my %new_rights = ref($_[0]) eq 'HASH' ? %{ $_[0] } : @_;
- $self->rights([ map { SL::DB::AuthGroupRight->new(right => $_, granted => $new_rights{$_} ? 1 : 0) }
SL::Auth::all_rights()
]);
+ $self->rights([ map { SL::DB::AuthGroupRight->new(right => $_, granted => $new_rights{$_} ? 1 : 0) }
$::auth->all_rights
]);
}
return {
}
return {
- map({ ($_ => 0) }
SL::Auth::all_rights()
),
+ map({ ($_ => 0) }
$::auth->all_rights
),
map({ ($_->right => $_->granted) } @{ $self->rights || [] })
};
}
map({ ($_->right => $_->granted) } @{ $self->rights || [] })
};
}