mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 17:20:14 +00:00
feat(api): allow unauthed requests to /systems/:id/settings
This commit is contained in:
parent
0406c32f6b
commit
0610701252
14 changed files with 334 additions and 70 deletions
|
|
@ -33,3 +33,17 @@ macro_rules! fake_enum_impls {
|
|||
}
|
||||
|
||||
pub(crate) use fake_enum_impls;
|
||||
|
||||
macro_rules! privacy_lookup {
|
||||
($v:expr, $vprivacy:expr, $lookup_level:expr) => {
|
||||
if matches!($vprivacy, crate::PrivacyLevel::Public)
|
||||
|| matches!($lookup_level, crate::PrivacyLevel::Private)
|
||||
{
|
||||
Some($v)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
pub(crate) use privacy_lookup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue