mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-22 01:05:02 +00:00
More work on permission utils and eager permission checks
This commit is contained in:
parent
5a3be1ab03
commit
8e1d39f26b
11 changed files with 189 additions and 79 deletions
6
backend/src/utils/missingPermissionError.ts
Normal file
6
backend/src/utils/missingPermissionError.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { getPermissionNames } from "./getPermissionNames";
|
||||
|
||||
export function missingPermissionError(missingPermissions: number | bigint): string {
|
||||
const permissionNames = getPermissionNames(missingPermissions);
|
||||
return `Missing permissions: **${permissionNames.join("**, **")}**`;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue