[Koha-bugs] [Bug 38139] Refactor C4::Auth::getuserflags() and move to Koha::Auth::Permissions->get_flags() with unit tests