src/api2/node/journal.rs: add access permissions
This commit is contained in:
		@ -4,9 +4,10 @@ use failure::*;
 | 
			
		||||
use serde_json::{json, Value};
 | 
			
		||||
use std::io::{BufRead,BufReader};
 | 
			
		||||
 | 
			
		||||
use proxmox::api::{api, ApiMethod, Router, RpcEnvironment};
 | 
			
		||||
use proxmox::api::{api, ApiMethod, Router, RpcEnvironment, Permission};
 | 
			
		||||
 | 
			
		||||
use crate::api2::types::*;
 | 
			
		||||
use crate::config::acl::PRIV_SYS_AUDIT;
 | 
			
		||||
 | 
			
		||||
#[api(
 | 
			
		||||
    protected: true,
 | 
			
		||||
@ -53,6 +54,9 @@ use crate::api2::types::*;
 | 
			
		||||
            description: "Line text.",
 | 
			
		||||
        },
 | 
			
		||||
    },
 | 
			
		||||
    access: {
 | 
			
		||||
        permission: &Permission::Privilege(&[], PRIV_SYS_AUDIT, false),
 | 
			
		||||
    },
 | 
			
		||||
)]
 | 
			
		||||
/// Read syslog entries.
 | 
			
		||||
fn get_journal(
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user