diff --git a/www/admin/metadata-converter.php b/www/admin/metadata-converter.php
index a674979e5f593b6fd6191a3b9b08f98be4a113aa..f91fed0eaa27fdf3e8995703b93cf3cba9fced21 100644
--- a/www/admin/metadata-converter.php
+++ b/www/admin/metadata-converter.php
@@ -2,6 +2,9 @@
 
 require_once('../_include.php');
 
+/* Make sure that the user has admin access rights. */
+SimpleSAML_Utilities::requireAdmin();
+
 $config = SimpleSAML_Configuration::getInstance();
 
 if(array_key_exists('xmldata', $_POST)) {