X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FAuthGroup.pm;h=033178643262716556a9d7b92ff6f5f732a1f32c;hb=9dfd320ff258071e3ad78dd6cf2d76e215efd4f7;hp=23dabb50c1782194514af70adf6803dce0aefe79;hpb=69df38d39da1a1fcbf59ebc8f3ddd29a1f82ec29;p=kivitendo-erp.git diff --git a/SL/DB/AuthGroup.pm b/SL/DB/AuthGroup.pm index 23dabb50c..033178643 100644 --- 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] } : @_; - $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 { - map({ ($_ => 0) } SL::Auth::all_rights()), + map({ ($_ => 0) } $::auth->all_rights), map({ ($_->right => $_->granted) } @{ $self->rights || [] }) }; }