Skip to content

Commit

Permalink
Fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk authored Jul 23, 2016
1 parent a865039 commit 6ee3f09
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions onelogin-saml-sso/php/validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
exit;
}

if (!current_user_can('delete_plugins')) {
header("HTTP/1.0 403 Forbidden");
echo '<h1>'.__("Access Forbidden!", 'onelogin-saml-sso').'</h1>';
exit();
}

require_once "compatibility.php";

?>
Expand All @@ -16,12 +22,6 @@

<?php

if (!current_user_can('delete_plugins')) {
header("HTTP/1.0 403 Forbidden");
echo '<h1>'.__("Access Forbidden!", 'onelogin-saml-sso').'</h1>';
exit();
}

echo '<h1>'.__('OneLogin SSO/SAML Settings validation', 'onelogin-saml-sso').'</h1>';

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

</body>
</html>
</html>

0 comments on commit 6ee3f09

Please sign in to comment.