mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Merge pull request #551 from laf/issue-laf-141
Updated new_alert_rule modal to not die and instead only return the page for admins
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user