80ddfec
Re-use the is_admin() function and fix it for the API This reduce some (partial) duplication of logic while keeping the API working Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>