enhance 7cf4c12
- hardened by admin only
This commit is contained in:
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user