forked from didirus/AstralRinth
Make get_user_from_headers and check_is_moderator_from_headers take in a bitflag of Scopes rather than a slice of Scopes (#3765)
This commit is contained in:
@@ -36,7 +36,7 @@ pub async fn add_friend(
|
||||
&**pool,
|
||||
&redis,
|
||||
&session_queue,
|
||||
Some(&[Scopes::USER_WRITE]),
|
||||
Scopes::USER_WRITE,
|
||||
)
|
||||
.await?
|
||||
.1;
|
||||
@@ -154,7 +154,7 @@ pub async fn remove_friend(
|
||||
&**pool,
|
||||
&redis,
|
||||
&session_queue,
|
||||
Some(&[Scopes::USER_WRITE]),
|
||||
Scopes::USER_WRITE,
|
||||
)
|
||||
.await?
|
||||
.1;
|
||||
@@ -200,7 +200,7 @@ pub async fn friends(
|
||||
&**pool,
|
||||
&redis,
|
||||
&session_queue,
|
||||
Some(&[Scopes::USER_READ]),
|
||||
Scopes::USER_READ,
|
||||
)
|
||||
.await?
|
||||
.1;
|
||||
|
||||
Reference in New Issue
Block a user