X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAuth.pm;h=04145f2cf1e05be3bba6fa586478899f3cf50bde;hb=b55d5bb480a23e57c9d927d330465b36cff10b53;hp=c2e6f73364d6f12a864cce592e7b821f04784467;hpb=e476a9df6d7b8794add9fe384a624817dc21c21b;p=kivitendo-erp.git diff --git a/SL/Auth.pm b/SL/Auth.pm index c2e6f7336..04145f2cf 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -55,10 +55,10 @@ sub init { sub reset { my ($self, %params) = @_; - $self->{SESSION} = { }; - $self->{FULL_RIGHTS} = { }; - $self->{RIGHTS} = { }; - $self->{unique_counter} = 0; + $self->{SESSION} = { }; + $self->{FULL_RIGHTS} = { }; + $self->{RIGHTS} = { }; + $self->{unique_counter} = 0; if ($self->is_db_connected) { # reset is called during request shutdown already. In case of a @@ -1309,6 +1309,11 @@ close the database connection. Creating a new database handle on each request can take up to 30% of the pre-request startup time, so we want to avoid that for fast ajax calls. +=item C + +Checks if current user has the C<$right>. If C<$dont_abort> is falsish +the request dies with a access denied error, otherwise returns true or false. + =back =head1 BUGS