Add MineGeo gameplay systems and interface
This commit is contained in:
10
shared/permissions.ts
Normal file
10
shared/permissions.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export type AccountRole = "contributor" | "moderator" | "admin";
|
||||
export type StaffRole = Exclude<AccountRole, "contributor">;
|
||||
|
||||
export function canReviewMaps(role: string | undefined): role is StaffRole {
|
||||
return role === "moderator" || role === "admin";
|
||||
}
|
||||
|
||||
export function isAdministrator(role: string | undefined) {
|
||||
return role === "admin";
|
||||
}
|
||||
Reference in New Issue
Block a user