X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/841d44c00aae1166a0721e40dc2f9ffb7b9ac5b5..bbbedfda3f5c771ff03f6445abe185cddc664680:/SL/DB/AuthGroup.pm 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 || [] }) }; }