chore: finish renaming pages to communities
This commit is contained in:
parent
d6fbfc3cd6
commit
00abbc8fa2
8 changed files with 31 additions and 30 deletions
|
@ -10,9 +10,9 @@ bitflags! {
|
|||
pub struct FinePermission: u32 {
|
||||
const DEFAULT = 1 << 0;
|
||||
const ADMINISTRATOR = 1 << 1;
|
||||
const MANAGE_JOURNAL_PAGES = 1 << 2;
|
||||
const MANAGE_JOURNAL_ENTRIES = 1 << 3;
|
||||
const MANAGE_JOURNAL_ENTRY_COMMENTS = 1 << 4;
|
||||
const MANAGE_COMMUNITY_PAGES = 1 << 2;
|
||||
const MANAGE_COMMUNITY_ENTRIES = 1 << 3;
|
||||
const MANAGE_POST_REPLIES = 1 << 4;
|
||||
const MANAGE_USERS = 1 << 5;
|
||||
const MANAGE_BANS = 1 << 6; // includes managing IP bans
|
||||
const MANAGE_WARNINGS = 1 << 7;
|
||||
|
@ -106,9 +106,9 @@ impl FinePermission {
|
|||
|
||||
/// Check if the given [`FinePermission`] qualifies as "Helper" status.
|
||||
pub fn check_helper(self) -> bool {
|
||||
self.check(FinePermission::MANAGE_JOURNAL_ENTRIES)
|
||||
&& self.check(FinePermission::MANAGE_JOURNAL_PAGES)
|
||||
&& self.check(FinePermission::MANAGE_JOURNAL_ENTRY_COMMENTS)
|
||||
self.check(FinePermission::MANAGE_COMMUNITY_ENTRIES)
|
||||
&& self.check(FinePermission::MANAGE_COMMUNITY_PAGES)
|
||||
&& self.check(FinePermission::MANAGE_POST_REPLIES)
|
||||
&& self.check(FinePermission::MANAGE_WARNINGS)
|
||||
&& self.check(FinePermission::VIEW_REPORTS)
|
||||
&& self.check(FinePermission::VIEW_AUDIT_LOG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue