Updated new_alert_rule modal to not die and instead only return the page for admins

This commit is contained in:
laf
2015-03-05 11:40:02 +00:00
parent 71bdf65dfa
commit 1238498696

View File

@@ -11,9 +11,7 @@
* the source code distribution for details.
*/
if(is_admin() === false) {
die('ERROR: You need to be admin');
}
if(is_admin() !== false) {
?>
@@ -229,3 +227,9 @@ $('#rule-submit').click('', function(e) {
});
</script>
<?php
}
?>