update
This commit is contained in:
parent
a5d3c14f0c
commit
11a862f6c7
6 changed files with 158 additions and 1 deletions
|
@ -16,6 +16,7 @@ use serde_json::json;
|
|||
use super::api_error;
|
||||
use super::FallibleApiResponse;
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! check_admin {
|
||||
($u:ident) => {
|
||||
if !$u.is_admin() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue