Skip to content

Commit 6ee3f09

Browse files
authored
1 parent a865039 commit 6ee3f09

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

onelogin-saml-sso/php/validate.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
exit;
55
}
66

7+
if (!current_user_can('delete_plugins')) {
8+
header("HTTP/1.0 403 Forbidden");
9+
echo '<h1>'.__("Access Forbidden!", 'onelogin-saml-sso').'</h1>';
10+
exit();
11+
}
12+
713
require_once "compatibility.php";
814

915
?>
@@ -16,12 +22,6 @@
1622

1723
<?php
1824

19-
if (!current_user_can('delete_plugins')) {
20-
header("HTTP/1.0 403 Forbidden");
21-
echo '<h1>'.__("Access Forbidden!", 'onelogin-saml-sso').'</h1>';
22-
exit();
23-
}
24-
2525
echo '<h1>'.__('OneLogin SSO/SAML Settings validation', 'onelogin-saml-sso').'</h1>';
2626

2727
echo __('Debug mode', 'onelogin-saml-sso').' '. ($settings['strict']?'<strong>on</strong>. '.__("In production turn it off", 'onelogin-saml-sso'):'<strong>off</strong>').'<br>';
@@ -138,4 +138,4 @@
138138
?>
139139

140140
</body>
141-
</html>
141+
</html>

0 commit comments

Comments
 (0)