You've already forked AstralRinth
forked from didirus/AstralRinth
Allow users to manage their own affiliate codes (#4392)
* Allow users to manage their own affiliate codes * Add a badge to restrict access to affiliate codes * sqlx prepare and clippy
This commit is contained in:
@@ -17,9 +17,7 @@ bitflags::bitflags! {
|
||||
const ALPHA_TESTER = 1 << 4;
|
||||
const CONTRIBUTOR = 1 << 5;
|
||||
const TRANSLATOR = 1 << 6;
|
||||
|
||||
const ALL = 0b1111111;
|
||||
const NONE = 0b0;
|
||||
const AFFILIATE = 1 << 7;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +25,7 @@ bitflags_serde_impl!(Badges, u64);
|
||||
|
||||
impl Default for Badges {
|
||||
fn default() -> Badges {
|
||||
Badges::NONE
|
||||
Badges::empty()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user