refactor Lychee/Admin/AdminSystem::checkPrivilege