1
0

enhance 7cf4c12 - hardened by admin only

This commit is contained in:
Ian
2014-01-05 14:14:37 +01:00
parent 7cf4c1251b
commit e5b28180a5

View File

@ -42,7 +42,9 @@ function serendipity_plugin_api_frontend_header($event_name, &$bag, &$eventData,
</script> </script>
<?php <?php
} }
// add a global available (index.tpl; admin/index.tpl; preview_iframe.tpl) redirect error string function used by errorToExceptionHandler() // add a global available (index.tpl; admin/index.tpl; preview_iframe.tpl) redirect error string function used by errorToExceptionHandler() - hardened by admin only
if ($serendipity['production'] === true) {
if( $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN ) {
?> ?>
<script type="text/javascript"> <script type="text/javascript">
function create(htmlStr) { function create(htmlStr) {
@ -56,6 +58,8 @@ function serendipity_plugin_api_frontend_header($event_name, &$bag, &$eventData,
} }
</script> </script>
<?php <?php
}
}
} }