1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00
appwrite/public/sdk-console/permission.ts
2022-09-20 14:07:51 +05:30

23 lines
472 B
TypeScript

export class Permission {
static read = (role: string): string => {
return `read("${role}")`
}
static write = (role: string): string => {
return `write("${role}")`
}
static create = (role: string): string => {
return `create("${role}")`
}
static update = (role: string): string => {
return `update("${role}")`
}
static delete = (role: string): string => {
return `delete("${role}")`
}
}