https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30700
--- Comment #14 from David Cook <dc...@prosentient.com.au> --- (In reply to Owen Leonard from comment #13) > I don't understand what's going on here, which may just be me: > > if ( !$patron->has_permission({ borrowers => 'edit_borrowers' }) ) { > print $input->redirect("/cgi-bin/koha/mainpage.pl"); > } > > But when I change a patron's password when logged in as a superlibrarian I'm > redirected to the main page rather than back to their account. Looks like Koha::Patron->has_permission uses C4::Auth::haspermission, which has this line: return $flags if $flags->{superlibrarian}; So if you're a superlibrarian then that should be returning true. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/