X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/7ed4b336b89b861479a1fc2670b9456334b0d1be..f9c910093cdf287cb661357937cc8d7749fef5b0:/SL/Auth.pm diff --git a/SL/Auth.pm b/SL/Auth.pm index bb7ae0051..374a9f2ff 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -1225,6 +1225,8 @@ sub load_rights_for_user { $rights = { map { $_ => 0 } all_rights() }; + return $rights if !$self->client || !$login; + $query = qq|SELECT gr."right", gr.granted FROM auth.group_rights gr