This commit is contained in:
JMARyA 2024-08-13 01:52:16 +02:00
parent a5d3c14f0c
commit 11a862f6c7
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
6 changed files with 158 additions and 1 deletions

View file

@ -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() {