From b952563a3bdb8581a066bcff51b274d1ce614f5f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 19 Nov 2019 14:03:37 +0000 Subject: [PATCH] Bug 24066: Add missing POD for has_permission To test: 1) do perldoc Koha/Patron.pm search has_permission Signed-off-by: Bernardo Gonzalez Kriegel Fixed (removed) space before 'my $permission' to make it similar to other entries. No errors Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- Koha/Patron.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 0bdd39cdd3..8b8b6d5ec3 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1331,6 +1331,14 @@ sub libraries_where_can_see_patrons { return @restricted_branchcodes; } +=head3 has_permission + +my $permission = $patron->has_permission($required); + +See C4::Auth::haspermission for details of syntax for $required + +=cut + sub has_permission { my ( $self, $flagsrequired ) = @_; return unless $self->userid; -- 2.39.5